mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🐛 Loses text after inline codes when exporting Word/HTML https://github.com/siyuan-note/siyuan/issues/14973
This commit is contained in:
parent
d5aa5d8e82
commit
d143296536
1 changed files with 1 additions and 1 deletions
|
|
@ -796,7 +796,7 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
|
|||
} 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))
|
||||
n.Next.Tokens = bytes.TrimPrefix(n.Next.Tokens, []byte(editor.Zwsp))
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue