mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-22 16:23:12 +02:00
Cambria anyway
This commit is contained in:
@@ -2,6 +2,11 @@ module.exports = function cleanUp(latex) {
|
||||
// strip any \[ and \], which is an block-level LaTeX markup indicator for MathJax:
|
||||
latex = latex.replace(/^'/,'').replace(/'$/,'').replace('\\[','').replace('\\]','');
|
||||
|
||||
// wrap some known functor words in italics markup
|
||||
['Bézier'].forEach(term => {
|
||||
latex = latex.replace(new RegExp(term, 'g'), '\\textit{' + term + '}');
|
||||
});
|
||||
|
||||
// also unindent the LaTeX.
|
||||
var indent = false;
|
||||
var lines = latex.split('\n').filter(function(line) { return !!line.trim(); });
|
||||
|
Reference in New Issue
Block a user