diff options
author | Wu Cheng-Han | 2016-12-20 03:05:59 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-12-20 03:05:59 +0800 |
commit | 418a852cc483edf6c27eca24ffc8f95d8bcfe414 (patch) | |
tree | 13f4b7dff32ca9283181c2712dacb3c50db61e79 /public | |
parent | 39521f25a78114c2606371a9a52d9ccca2fb1091 (diff) |
Fix mathjax not able to render issue
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 0f67f8fb..ba61a669 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -904,7 +904,14 @@ md.use(require('markdown-it-mark')); md.use(require('markdown-it-ins')); md.use(require('markdown-it-sub')); md.use(require('markdown-it-sup')); -md.use(require('markdown-it-mathjax')); +md.use(require('markdown-it-mathjax')({ + beforeMath: '<span class="mathjax raw">', + afterMath: '</span>', + beforeInlineMath: '<span class="mathjax raw">\\(', + afterInlineMath: '\\)</span>', + beforeDisplayMath: '<span class="mathjax raw">\\[', + afterDisplayMath: '\\]</span>' +})); md.use(require('markdown-it-imsize')); md.use(require('markdown-it-emoji'), { |