Browse Source

Fixed pandoc args to work with pandoc version 2.2.1.

pull/77/head
jrtechs 4 years ago
parent
commit
0340443015
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      blog/renderBlogPost.js

+ 2
- 4
blog/renderBlogPost.js View File

@ -4,8 +4,8 @@ const utils = require('../utils/utils.js');
const sql = require('../utils/sql');
const argsFull = '--from markdown-markdown_in_html_blocks+raw_html -S --base-header-level=1 --toc --toc-depth=3 -N --normalize -s --mathjax -t html5';
const argsPreview = '-S --normalize -s --mathjax -t html5';
const argsFull = '--from markdown-markdown_in_html_blocks+raw_html --base-header-level=1 --toc --toc-depth=3 -N --mathjax -t html5';
const argsPreview = '--mathjax -t html5';
module.exports=
@ -184,11 +184,9 @@ module.exports=
reject(err);
}
html = html.split("<img").join("<img style=\"max-width: 100%;\" ");
html = html.split("<code>").join("<code class='hljs cpp'>");
resolve(html);
};
if(type == -1)

Loading…
Cancel
Save