mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🧑💻 /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:
parent
94f8fc5b71
commit
fefb674fc0
3 changed files with 81 additions and 85 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue