Markdown escape error.

This commit is contained in:
jaywcjlove 2017-08-31 15:02:46 +08:00
parent 11c47dfd06
commit e748360960
1 changed files with 4 additions and 1 deletions

View File

@ -205,7 +205,10 @@ function ReadTmpToHTML(from_path,to_path,md_path,des_json, total_pages){
marked(README_str.toString(),function(err,md_html){
if (err) return console.log(error(' → '+md_path+" 转换成HTML失败!"));
html = html.replace('{{content}}',md_html);
html = html.split('{{content}}')
html.splice(1, 0, md_html);
html = html.join('')
// html = html.replace('{{content}}',md_html);
fs.writeFileSync(new_to_path,html);
console.log(success(" → ")+to_path + '');
})