Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luc Bourdot
codimd
Commits
418a852c
Commit
418a852c
authored
Dec 20, 2016
by
Wu Cheng-Han
Browse files
Fix mathjax not able to render issue
parent
39521f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/extra.js
View file @
418a852c
...
...
@@ -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
'
),
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment