提交
This commit is contained in:
@@ -9,7 +9,8 @@ marked.use(
|
||||
nonStandard: true
|
||||
})
|
||||
);
|
||||
marked.setOptions({ gfm: true, breaks: false });
|
||||
// breaks: true — 段内单换行渲染为 <br>,与 Obsidian 等编辑器的换行习惯一致(CommonMark 默认会把单换行当成空格)
|
||||
marked.setOptions({ gfm: true, breaks: true });
|
||||
|
||||
function decodeHtmlEntities(str) {
|
||||
return String(str)
|
||||
|
||||
Reference in New Issue
Block a user