mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Follow editor Markdown syntax settings when importing Markdown https://github.com/siyuan-note/siyuan/issues/14731
This commit is contained in:
parent
e0f8a2f48c
commit
2f6c7fa886
1 changed files with 10 additions and 7 deletions
|
|
@ -97,13 +97,16 @@ func NewStdLute() (ret *lute.Lute) {
|
|||
ret.SetGFMAutoLink(false) // 导入 Markdown 时不自动转换超链接 https://github.com/siyuan-note/siyuan/issues/7682
|
||||
ret.SetImgPathAllowSpace(true)
|
||||
ret.SetInlineMathAllowDigitAfterOpenMarker(true) // Formula parsing supports $ followed by numbers when importing Markdown https://github.com/siyuan-note/siyuan/issues/8362
|
||||
ret.SetInlineAsterisk(true)
|
||||
ret.SetInlineUnderscore(true)
|
||||
ret.SetSup(true)
|
||||
ret.SetSub(true)
|
||||
ret.SetTag(true)
|
||||
ret.SetInlineMath(true)
|
||||
ret.SetGFMStrikethrough(true)
|
||||
|
||||
// 导入 Markdown 时遵循编辑器 Markdown 语法设置
|
||||
// Follow editor Markdown syntax settings when importing Markdown https://github.com/siyuan-note/siyuan/issues/14731
|
||||
ret.SetInlineAsterisk(MarkdownSettings.InlineAsterisk)
|
||||
ret.SetInlineUnderscore(MarkdownSettings.InlineUnderscore)
|
||||
ret.SetSup(MarkdownSettings.InlineSup)
|
||||
ret.SetSub(MarkdownSettings.InlineSub)
|
||||
ret.SetTag(MarkdownSettings.InlineTag)
|
||||
ret.SetInlineMath(MarkdownSettings.InlineMath)
|
||||
ret.SetGFMStrikethrough(MarkdownSettings.InlineStrikethrough)
|
||||
ret.SetGFMStrikethrough1(false)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue