mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Improve export to Liandi https://github.com/siyuan-note/siyuan/issues/12338
This commit is contained in:
parent
7d740bcc88
commit
283ca7da41
1 changed files with 5 additions and 0 deletions
|
|
@ -1866,6 +1866,11 @@ func exportMarkdownContent0(tree *parse.Tree, cloudAssetsBase string, assetsDest
|
||||||
if util.IsAssetLinkDest([]byte(href)) {
|
if util.IsAssetLinkDest([]byte(href)) {
|
||||||
n.TextMarkAHref = strings.ReplaceAll(href, " ", "_")
|
n.TextMarkAHref = strings.ReplaceAll(href, " ", "_")
|
||||||
}
|
}
|
||||||
|
} else if ast.NodeIFrame == n.Type || ast.NodeAudio == n.Type || ast.NodeVideo == n.Type {
|
||||||
|
dest := treenode.GetNodeSrcTokens(n)
|
||||||
|
if util.IsAssetLinkDest([]byte(dest)) {
|
||||||
|
setAssetsLinkDest(n, dest, strings.ReplaceAll(dest, " ", "_"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue