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:
@@ -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,'<')
|
||||
.replace(/>/g,'>')
|
||||
.replace(/([{}])/g,"{'$1'}")
|
||||
.replace(/\n/g,"{'\\n'}");
|
||||
newsource += "<pre>" + pre + "</pre>";
|
||||
}
|
||||
return newsource + source.substring(from);
|
||||
}
|
||||
|
Reference in New Issue
Block a user