From 92f2a4acf05505ae2fbfd2d3c11ef30e4746971c Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 19 Dec 2016 16:28:59 +0800 Subject: Remove unused vendor code and add fix related usages --- public/js/extra.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/js') diff --git a/public/js/extra.js b/public/js/extra.js index a4eed879..61433528 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -903,7 +903,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('../vendor/markdown-it-mathjax')); +md.use(require('markdown-it-mathjax')); md.use(require('markdown-it-imsize')); md.use(require('markdown-it-emoji'), { @@ -980,7 +980,7 @@ md.renderer.rules.fence = function (tokens, idx, options, env, self) { }; /* Defined regex markdown it plugins */ -require('script!../vendor/markdown-it-regexp'); +var Plugin = require('markdown-it-regexp'); //youtube var youtubePlugin = new Plugin( -- cgit v1.2.3