mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 12:15:16 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
774de24962
1 changed files with 3 additions and 0 deletions
|
|
@ -800,6 +800,9 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
|
|||
if ast.NodeLinkDest == n.Type {
|
||||
if bytes.HasPrefix(n.Tokens, []byte("file://")) {
|
||||
n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("\\"), []byte("/"))
|
||||
if !bytes.HasPrefix(n.Tokens, []byte("file:///")) {
|
||||
n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("file://"), []byte("file:///"))
|
||||
}
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue