🎨 Improve web clip escaping code block markers https://github.com/siyuan-note/siyuan/issues/11643

This commit is contained in:
Daniel 2024-06-05 17:48:11 +08:00
parent 143150dea3
commit 7eafd7ada8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 3 deletions

View file

@ -153,7 +153,7 @@ func extensionCopy(c *gin.Context) {
unlink.Unlink() unlink.Unlink()
} }
parse.NestedInlines2FlattedSpans(tree, false) parse.NestedInlines2FlattedSpansHybrid(tree, false)
md, _ = lute.FormatNodeSync(tree.Root, luteEngine.ParseOptions, luteEngine.RenderOptions) md, _ = lute.FormatNodeSync(tree.Root, luteEngine.ParseOptions, luteEngine.RenderOptions)
ret.Data = map[string]interface{}{ ret.Data = map[string]interface{}{

View file

@ -164,8 +164,7 @@ func html2BlockDOM(c *gin.Context) {
}) })
} }
// 复制带超链接的图片无法保存到本地 https://github.com/siyuan-note/siyuan/issues/5993 parse.NestedInlines2FlattedSpansHybrid(tree, false)
parse.NestedInlines2FlattedSpans(tree, false)
renderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions) renderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions)
output := renderer.Render() output := renderer.Render()