This commit is contained in:
Daniel
2024-11-08 14:29:25 +08:00
parent c5dc86bf8e
commit fb3bc9aa81
6 changed files with 8 additions and 5 deletions

View File

@@ -212,6 +212,7 @@ func extensionCopy(c *gin.Context) {
unlink.Unlink()
}
parse.TextMarks2Inlines(tree) // 先将 TextMark 转换为 Inlines https://github.com/siyuan-note/siyuan/issues/13056
parse.NestedInlines2FlattedSpansHybrid(tree, false)
md, _ = lute.FormatNodeSync(tree.Root, luteEngine.ParseOptions, luteEngine.RenderOptions)

View File

@@ -165,6 +165,7 @@ func html2BlockDOM(c *gin.Context) {
})
}
parse.TextMarks2Inlines(tree) // 先将 TextMark 转换为 Inlines https://github.com/siyuan-note/siyuan/issues/13056
parse.NestedInlines2FlattedSpansHybrid(tree, false)
renderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions)