🎨 Improve importing markdown

This commit is contained in:
Daniel 2024-11-18 12:14:19 +08:00
parent f7ca0ca423
commit a574a67727
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -93,13 +93,13 @@ func NewStdLute() (ret *lute.Lute) {
ret.SetGFMAutoLink(false) // 导入 Markdown 时不自动转换超链接 https://github.com/siyuan-note/siyuan/issues/7682 ret.SetGFMAutoLink(false) // 导入 Markdown 时不自动转换超链接 https://github.com/siyuan-note/siyuan/issues/7682
ret.SetImgPathAllowSpace(true) ret.SetImgPathAllowSpace(true)
ret.SetInlineMathAllowDigitAfterOpenMarker(true) // Formula parsing supports $ followed by numbers when importing Markdown https://github.com/siyuan-note/siyuan/issues/8362 ret.SetInlineMathAllowDigitAfterOpenMarker(true) // Formula parsing supports $ followed by numbers when importing Markdown https://github.com/siyuan-note/siyuan/issues/8362
ret.SetInlineAsterisk(MarkdownSettings.InlineAsterisk) ret.SetInlineAsterisk(true)
ret.SetInlineUnderscore(MarkdownSettings.InlineUnderscore) ret.SetInlineUnderscore(true)
ret.SetSup(MarkdownSettings.InlineSup) ret.SetSup(true)
ret.SetSub(MarkdownSettings.InlineSub) ret.SetSub(true)
ret.SetTag(MarkdownSettings.InlineTag) ret.SetTag(true)
ret.SetInlineMath(MarkdownSettings.InlineMath) ret.SetInlineMath(true)
ret.SetGFMStrikethrough(MarkdownSettings.InlineStrikethrough) ret.SetGFMStrikethrough(true)
ret.SetGFMStrikethrough1(false) ret.SetGFMStrikethrough1(false)
return return
} }