|
|
@ -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) |
|
|
|