1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 19:50:01 +02:00

accented letter shimming

This commit is contained in:
Pomax
2016-01-01 09:43:50 -08:00
parent 43742dedc7
commit 71c42b8a2f
3 changed files with 234 additions and 227 deletions

View File

@@ -41,6 +41,9 @@ if (latex === -1) {
// strip any \[ and \], which is an block-level LaTeX markup indicator for MathJax:
latex = latex.replace(/^'/,'').replace(/'$/,'').replace('\\[','').replace('\\]','');
// Accented letters need shimming. For now, at least, until I figure out
// how to make mathjax-node use a full STIX or the like for typesetting.
latex = latex.replace(/é/g,'\\acute{e}');
// set up the MathJax processor
var API = require("mathjax-node/lib/mj-single");