From f0986550462171b031ade2a4d2176ffbacafe123 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 26 Apr 2024 17:40:18 +0800 Subject: [PATCH] :art: Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141 --- kernel/util/lute.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/util/lute.go b/kernel/util/lute.go index cadb5757d..258bddfa3 100644 --- a/kernel/util/lute.go +++ b/kernel/util/lute.go @@ -84,6 +84,11 @@ 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.SetSup(MarkdownSettings.InlineSup) + ret.SetSub(MarkdownSettings.InlineSub) + ret.SetTag(MarkdownSettings.InlineTag) + ret.SetInlineMath(MarkdownSettings.InlineMath) + ret.SetGFMStrikethrough1(false) return }