diff --git a/public/js/extra.js b/public/js/extra.js index e133a810..4c4e66d6 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -826,7 +826,7 @@ 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('../vendor/markdown-it-mathjax')); md.use(require('markdown-it-imsize')); function renderContainer(tokens, idx, options, env, self) { diff --git a/public/js/index.js b/public/js/index.js index 2d3c2965..ae823c42 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -7,19 +7,6 @@ require('bootstrap/dist/css/bootstrap.css'); require('prismjs/themes/prism.css'); require('highlight.js/styles/github-gist.css'); -require('markdown-it'); -require('markdown-it-abbr'); -require('markdown-it-footnote'); -require('markdown-it-deflist'); -require('markdown-it-mark'); -require('markdown-it-ins'); -require('markdown-it-sub'); -require('markdown-it-sup'); -require('markdown-it-container'); -require('markdown-it-mathjax'); -require('markdown-it-regexp'); -require('markdown-it-imsize'); - /* other vendors plugin */ require('gist-embed'); require('string'); diff --git a/public/js/public.js b/public/js/public.js index 69999de9..1a1e5426 100644 --- a/public/js/public.js +++ b/public/js/public.js @@ -14,19 +14,6 @@ require('bootstrap/dist/css/bootstrap.css'); require('prismjs/themes/prism.css'); require('highlight.js/styles/github-gist.css'); -require('markdown-it'); -require('markdown-it-abbr'); -require('markdown-it-footnote'); -require('markdown-it-deflist'); -require('markdown-it-mark'); -require('markdown-it-ins'); -require('markdown-it-sub'); -require('markdown-it-sup'); -require('markdown-it-container'); -require('markdown-it-mathjax'); -require('markdown-it-regexp'); -require('markdown-it-imsize'); - /* other vendors plugin */ require('gist-embed'); require('string');