This commit is contained in:
Daniel 2025-05-15 09:28:40 +08:00
parent 2d0edc1555
commit a06da150a6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -793,6 +793,11 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
n.ListData.Start = li.ListData.Num n.ListData.Start = li.ListData.Num
} }
} }
} else if n.IsTextMarkType("code") {
if nil != n.Next && ast.NodeText == n.Next.Type {
// 行级代码导出 word 之后会有多余的零宽空格 https://github.com/siyuan-note/siyuan/issues/14825
n.Next.Tokens = bytes.TrimPrefix(n.Tokens, []byte(editor.Zwsp))
}
} }
return ast.WalkContinue return ast.WalkContinue
}) })