mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve markdown parsing https://github.com/siyuan-note/siyuan/issues/13240
This commit is contained in:
parent
6e5dc8b724
commit
0d156d7b6d
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ func html2BlockDOM(c *gin.Context) {
|
|||
luteEngine.SetGFMStrikethrough(true)
|
||||
luteEngine.SetInlineAsterisk(true)
|
||||
luteEngine.SetInlineUnderscore(true)
|
||||
luteEngine.SetHTMLTag2TextMark(true)
|
||||
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
|
||||
if err != nil {
|
||||
ret.Data = "Failed to convert"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue