mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-30 03:30:34 +02:00
.
This commit is contained in:
@@ -37,9 +37,11 @@ if (latex === -1) {
|
||||
}
|
||||
}
|
||||
|
||||
// strip any \[ and \], which is an block-level LaTeX markup indicator for MathJax
|
||||
|
||||
// strip any \[ and \], which is an block-level LaTeX markup indicator for MathJax:
|
||||
latex = latex.replace(/^'/,'').replace(/'$/,'').replace('\\[','').replace('\\]','');
|
||||
|
||||
|
||||
// set up the MathJax processor
|
||||
var API = require("mathjax-node/lib/mj-single");
|
||||
API.config({
|
||||
@@ -76,7 +78,6 @@ var toReactStyle = function(input) {
|
||||
var fs = require("fs");
|
||||
var filename = "images/latex/" + hash + ".svg";
|
||||
var destination = __dirname + "/../" + filename;
|
||||
|
||||
var className="LaTeX SVG";
|
||||
|
||||
// convert the passed LaTeX to SVG form
|
||||
|
Reference in New Issue
Block a user