mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/13056
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user