1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-24 17:23:05 +02:00

no more client-side mathjax

This commit is contained in:
Pomax
2015-12-31 16:10:13 -08:00
parent d9a0bac687
commit 9d33893b32
2 changed files with 23 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ function escapeBlockLaTeX(source) {
var hash = sha1(latex);
var filename = "images/latex/" + hash + ".svg";
var destination = __dirname + "/../" + filename;
var rewrite = '<img className="LaTeX SVG" src="/' + filename + '"/>';
var rewrite = '<img className="LaTeX SVG" src="' + filename + '"/>';
// And only generate if the file doesn't already exist, of course.
if (!fs.existsSync(destination)) {