1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-12 03:34:12 +02:00

rebuild + sections up to 14

This commit is contained in:
Pomax
2016-01-02 10:05:27 -08:00
parent 15523da391
commit c8ebcf29b9
31 changed files with 3079 additions and 94 deletions

View File

@@ -20,9 +20,13 @@ function fixPreBlocks(source) {
// that's a problem...
throw new Error("improperly closed LaTeX encountered!");
}
pre = source.substring(curr, term + ed.length);
pre = pre.replace(/\n/g,"{'\\n'}");
newsource += pre;
pre = source.substring(curr+op.length, term);
pre = pre.replace(/&/g,'&')
.replace(/</g,'&lt;')
.replace(/>/g,'&gt;')
.replace(/([{}])/g,"{'$1'}")
.replace(/\n/g,"{'\\n'}");
newsource += "<pre>" + pre + "</pre>";
}
return newsource + source.substring(from);
}