diff --git a/index.html b/index.html index 3c4a172..82f9da2 100644 --- a/index.html +++ b/index.html @@ -27,11 +27,7 @@ - - - - diff --git a/node/blog.js b/node/blog.js index 315b609..6b0c69a 100644 --- a/node/blog.js +++ b/node/blog.js @@ -4,8 +4,8 @@ const { const fs = require("fs"); const showdown = require("showdown"); -require("../shared/showdown-prettify"); -require("../shared/showdown-footnotes"); +require("./showdown-prettify"); +require("./showdown-footnotes"); const converter = new showdown.Converter({ parseImgDimensions: true, headerLevelStart: 3, diff --git a/node/rss.js b/node/rss.js index ccfc516..fcc9337 100644 --- a/node/rss.js +++ b/node/rss.js @@ -4,8 +4,8 @@ const { const fs = require("fs"); const showdown = require("showdown"); -require("../shared/showdown-prettify"); -require("../shared/showdown-footnotes"); +require("./showdown-prettify"); +require("./showdown-footnotes"); const converter = new showdown.Converter({ parseImgDimensions: true, extensions: ["prettify", "footnotes"] diff --git a/shared/showdown-footnotes.js b/node/showdown-footnotes.js similarity index 86% rename from shared/showdown-footnotes.js rename to node/showdown-footnotes.js index b699c99..520ea8f 100644 --- a/shared/showdown-footnotes.js +++ b/node/showdown-footnotes.js @@ -20,7 +20,7 @@ return [{ type: 'lang', filter: function filter(text) { - return text.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/mg, function (str, name, rawContent, _, padding) { + return text.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/mgi, function (str, name, rawContent, _, padding) { var content = converter.makeHtml(rawContent.replace(new RegExp('^' + padding, 'gm'), '')); return '