From 418a852cc483edf6c27eca24ffc8f95d8bcfe414 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 20 Dec 2016 03:05:59 +0800 Subject: Fix mathjax not able to render issue --- public/js/extra.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: '', + afterMath: '', + beforeInlineMath: '\\(', + afterInlineMath: '\\)', + beforeDisplayMath: '\\[', + afterDisplayMath: '\\]' +})); md.use(require('markdown-it-imsize')); md.use(require('markdown-it-emoji'), { -- cgit v1.2.3