diff options
Diffstat (limited to 'public')
-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'), { |