Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141 https://ld246.com/article/1714207731244

Danielb934568eba3f
diff --git a/kernel/model/import.go b/kernel/model/import.go
index c709675529..ffa6e90082 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++ {