🧑‍💻 /api/block/getBlockKramdown link/image URLs are no longer encoded with spaces https://github.com/siyuan-note/siyuan/issues/15611

This commit is contained in:
Daniel 2025-08-23 17:16:47 +08:00
parent 94f8fc5b71
commit fefb674fc0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 81 additions and 85 deletions

View file

@ -763,6 +763,9 @@ func GetBlockKramdown(id, mode string) (ret string) {
root.PrependChild(node)
luteEngine := NewLute()
if "md" == mode {
// `/api/block/getBlockKramdown` link/image URLs are no longer encoded with spaces https://github.com/siyuan-note/siyuan/issues/15611
luteEngine.SetPreventEncodeLinkSpace(true)
ret = treenode.ExportNodeStdMd(root, luteEngine)
} else {
tree.Root = root