Closed simonmysun closed 7 years ago
Seams that it's my problem.
Sorry for disturbing.
Changing from
import markdownMathjax from 'markdown-it-mathjax';
md.use(markdownMathjax)
to
import markdownMathjax from 'markdown-it-mathjax';
md.use(markdownMathjax())
makes it work.
It's a little weird because .use(require('markdown-it-mathjax'))
is my original code before I set up Webpack and Babel.
On my computer, this input:
leads to this result:
Then it don't work.
Is it my wrong usage or the rule should be improved?