diff --git a/blog/renderBlogPost.js b/blog/renderBlogPost.js index 46e90a6..191fafe 100644 --- a/blog/renderBlogPost.js +++ b/blog/renderBlogPost.js @@ -4,7 +4,7 @@ const utils = require('../utils/utils.js'); const sql = require('../utils/sql'); -const argsFull = '--from markdown-markdown_in_html_blocks+raw_html --toc --toc-depth=3 -N --mathjax -t html5'; +const argsFull = '--from markdown-markdown_in_html_blocks+raw_html --toc --toc-depth=3 -N --mathjax -t html5 --no-highlight'; const argsPreview = '--mathjax -t html5'; @@ -100,6 +100,18 @@ module.exports= module.exports.convertToHTML(markDown, blocks).then(function(result) { + // hackey stuff to fix this open issue on pandoc https://github.com/jgm/pandoc/issues/3858 + //search for pattern
and replace with
+ var re = /\/;
+ while (result.search(re) != -1)
+ {
+ var preTag = result.match(/\/g)[0];
+ var finishIndex = preTag.split('"', 2).join('"').length;
+ lang = preTag.substring(12, finishIndex);
+ var newHTML = ``
+ var original = ``;
+ result = result.split(original).join(newHTML);
+ }
result = result.split("").join("");
@@ -197,7 +209,7 @@ module.exports=
else
{
html = html.split("").join("");
+ // html = html.split("").join("");
resolve(html);
}
};
diff --git a/includes/html/footer.html b/includes/html/footer.html
index b97435b..b6989cc 100644
--- a/includes/html/footer.html
+++ b/includes/html/footer.html
@@ -55,8 +55,8 @@
-
-
+
+