Fix mathjax not able to render issue

This commit is contained in:
Wu Cheng-Han 2016-12-20 03:05:59 +08:00
parent 39521f25a7
commit 418a852cc4
1 changed files with 8 additions and 1 deletions

View File

@ -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'), {