From 4a6903c91b3b8502585d6e17137ef076c489ebcf Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Tue, 11 Oct 2016 17:53:46 +0800 Subject: [PATCH] Revert customized markdown-it-mathjax plugin --- public/js/extra.js | 2 +- public/js/index.js | 13 ------------- public/js/public.js | 13 ------------- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/public/js/extra.js b/public/js/extra.js index e133a81..4c4e66d 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 2d3c296..ae823c4 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 69999de..1a1e542 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');