From b934568eba3ff444430bb71b4437159a44c376de Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 27 Apr 2024 18:20:40 +0800 Subject: [PATCH] :art: Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141 https://ld246.com/article/1714207731244 --- kernel/model/import.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/model/import.go b/kernel/model/import.go index c7096755292..ffa6e900824 100644 --- a/kernel/model/import.go +++ b/kernel/model/import.go @@ -1193,6 +1193,10 @@ func convertWikiLinksAndTags0(tree *parse.Tree) { } func convertTags(text string) (ret string) { + if !util.MarkdownSettings.InlineTag { + return text + } + pos, i := -1, 0 tokens := []byte(text) for ; i < len(tokens); i++ {