mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 20:08:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a61878ac2c
2 changed files with 9 additions and 0 deletions
|
|
@ -291,3 +291,7 @@ func FilterUploadFileName(name string) string {
|
|||
func AssetName(name string) string {
|
||||
return util.AssetName(name)
|
||||
}
|
||||
|
||||
func CurrentLanguage() string {
|
||||
return model.Conf.Lang
|
||||
}
|
||||
|
|
|
|||
|
|
@ -793,6 +793,11 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
|
|||
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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue