mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve web clip escaping code block markers https://github.com/siyuan-note/siyuan/issues/11643
This commit is contained in:
parent
143150dea3
commit
7eafd7ada8
2 changed files with 2 additions and 3 deletions
|
|
@ -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{}{
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue