diff --git a/demo/demo.js b/demo/demo.js index 544ea3c..220212a 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -1,6 +1,7 @@ const mdReserve = new MdReverse(); -mdReserve.use(new MdReverse.TablePlugin()); +mdReserve.use(MdReverse.plugin['table']); +mdReserve.use(MdReverse.plugin['strickthrough']); const htmlArea = document.getElementById('html-area'); const mdArea = document.getElementById('markdown-area'); diff --git a/index.html b/index.html index 31d3311..0f079b0 100644 --- a/index.html +++ b/index.html @@ -9,13 +9,10 @@ const url = `${location.protocol}//${location.host}${location.pathname}`; let replaceUrl; if (/(\/index\.html\/?|\/)/g.test(url)) { - replaceUrl = url.replace(/(\/index\.html\/?|\/)$/, "/dist/index.html"); + replaceUrl = url.replace(/(\/index\.html\/?|\/)$/, "/demo/index.html"); window.location.replace(replaceUrl); } else { document.writeln('ERROR'); - document.writeln('