mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00: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.SetGFMStrikethrough(true)
|
||||||
luteEngine.SetInlineAsterisk(true)
|
luteEngine.SetInlineAsterisk(true)
|
||||||
luteEngine.SetInlineUnderscore(true)
|
luteEngine.SetInlineUnderscore(true)
|
||||||
|
luteEngine.SetHTMLTag2TextMark(true)
|
||||||
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
|
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ret.Data = "Failed to convert"
|
ret.Data = "Failed to convert"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue