Load custom markdown-it-regex plugin with script-loader

This commit is contained in:
Yukai Huang 2016-10-12 14:37:32 +08:00
parent b73fcfc5c9
commit 895bf98b03
1 changed files with 14 additions and 14 deletions

View File

@ -916,7 +916,7 @@ md.renderer.rules.fence = function (tokens, idx, options, env, self) {
};
/* Defined regex markdown it plugins */
var Plugin = require('markdown-it-regexp');
require('script!../vendor/markdown-it-regexp');
//youtube
var youtubePlugin = new Plugin(