An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Move full-width task list syntax to block settings https://github.com/siyuan-note/siyuan/issues/18702
Daniel564f8b694668
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex 7e99cd0741..fedfb05b5c 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "صيغة قائمة المهام بأقواس كاملة العرض",- "editorMarkdownInlineFullWidthTaskListTip": "عند التمكين، سيتم دعم إدخال صيغة قائمة المهام <code>【】</code> و <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "صيغة قائمة المهام بأقواس كاملة العرض",+ "editorMarkdownBlockFullWidthTaskListTip": "عند التمكين، سيتم دعم إدخال صيغة قائمة المهام <code>【】</code> و <code>【x】</code>","duplicateCopy": "إنشاء نسخة","runeCountWithEmbed": "عدد الأحرف مع الكتل المضمنة","wordCountWithEmbed": "عدد الكلمات مع الكتل المضمنة",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex fa8f210079..5eb822dd44 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Vollbreite Aufgabenlistensyntax",- "editorMarkdownInlineFullWidthTaskListTip": "Wenn aktiviert, wird die Eingabe der Aufgabenlistensyntax <code>【】</code> und <code>【x】</code> unterstützt",+ "editorMarkdownBlockFullWidthTaskList": "Vollbreite Aufgabenlistensyntax",+ "editorMarkdownBlockFullWidthTaskListTip": "Wenn aktiviert, wird die Eingabe der Aufgabenlistensyntax <code>【】</code> und <code>【x】</code> unterstützt","duplicateCopy": "Kopie erstellen","runeCountWithEmbed": "Zeichen einschließlich eingebetteter Blöcke","wordCountWithEmbed": "Wörter einschließlich eingebetteter Blöcke",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex 0f4317205b..4600336b40 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Full-width task list syntax",- "editorMarkdownInlineFullWidthTaskListTip": "When enabled, <code>【】</code> and <code>【x】</code> task list syntax input will be supported",+ "editorMarkdownBlockFullWidthTaskList": "Full-width task list syntax",+ "editorMarkdownBlockFullWidthTaskListTip": "When enabled, <code>【】</code> and <code>【x】</code> task list syntax input will be supported","duplicateCopy": "Create copy","runeCountWithEmbed": "Characters with embed blocks","wordCountWithEmbed": "Words with embed blocks",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex 522c8d5405..34597ae2a4 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Sintaxis de lista de tareas de ancho completo",- "editorMarkdownInlineFullWidthTaskListTip": "Cuando está habilitado, se admite la entrada de la sintaxis de lista de tareas <code>【】</code> y <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Sintaxis de lista de tareas de ancho completo",+ "editorMarkdownBlockFullWidthTaskListTip": "Cuando está habilitado, se admite la entrada de la sintaxis de lista de tareas <code>【】</code> y <code>【x】</code>","duplicateCopy": "Crear copia","runeCountWithEmbed": "Caracteres con bloques incrustados","wordCountWithEmbed": "Palabras con bloques incrustados",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex 902a97ba06..7b120a7840 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Syntaxe de liste de tâches pleine chasse",- "editorMarkdownInlineFullWidthTaskListTip": "Lorsque cette option est activée, la saisie des syntaxes de liste de tâches <code>【】</code> et <code>【x】</code> est prise en charge",+ "editorMarkdownBlockFullWidthTaskList": "Syntaxe de liste de tâches pleine chasse",+ "editorMarkdownBlockFullWidthTaskListTip": "Lorsque cette option est activée, la saisie des syntaxes de liste de tâches <code>【】</code> et <code>【x】</code> est prise en charge","duplicateCopy": "Créer une copie","runeCountWithEmbed": "Caractères avec blocs intégrés","wordCountWithEmbed": "Mots avec blocs intégrés",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex 647ee5f833..5422815dc0 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "תחביר רשימת משימות ברוחב מלא",- "editorMarkdownInlineFullWidthTaskListTip": "כאשר האפשרות מופעלת, תתאפשר הזנת תחביר רשימת המשימות <code>【】</code> ו-<code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "תחביר רשימת משימות ברוחב מלא",+ "editorMarkdownBlockFullWidthTaskListTip": "כאשר האפשרות מופעלת, תתאפשר הזנת תחביר רשימת המשימות <code>【】</code> ו-<code>【x】</code>","duplicateCopy": "צור עותק","runeCountWithEmbed": "תווים כולל בלוקים מוטמעים","wordCountWithEmbed": "מילים כולל בלוקים מוטמעים",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex 633c4f014c..be4c10b5ae 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "पूर्ण-चौड़ाई कार्य सूची सिंटैक्स",- "editorMarkdownInlineFullWidthTaskListTip": "सक्षम होने पर <code>【】</code> और <code>【x】</code> कार्य सूची सिंटैक्स इनपुट समर्थित होगा",+ "editorMarkdownBlockFullWidthTaskList": "पूर्ण-चौड़ाई कार्य सूची सिंटैक्स",+ "editorMarkdownBlockFullWidthTaskListTip": "सक्षम होने पर <code>【】</code> और <code>【x】</code> कार्य सूची सिंटैक्स इनपुट समर्थित होगा","duplicateCopy": "प्रतिलिपि बनाएं","runeCountWithEmbed": "एम्बेड ब्लॉक सहित वर्ण","wordCountWithEmbed": "एम्बेड ब्लॉक सहित शब्द",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex 4b990aa3f9..156985492c 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Sintaks daftar tugas lebar penuh",- "editorMarkdownInlineFullWidthTaskListTip": "Jika diaktifkan, input sintaks daftar tugas <code>【】</code> dan <code>【x】</code> akan didukung",+ "editorMarkdownBlockFullWidthTaskList": "Sintaks daftar tugas lebar penuh",+ "editorMarkdownBlockFullWidthTaskListTip": "Jika diaktifkan, input sintaks daftar tugas <code>【】</code> dan <code>【x】</code> akan didukung","duplicateCopy": "Buat salinan","runeCountWithEmbed": "Karakter termasuk blok sematan","wordCountWithEmbed": "Kata termasuk blok sematan",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex df64a224d0..2cc3b9a766 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Sintassi dell'elenco attività a larghezza intera",- "editorMarkdownInlineFullWidthTaskListTip": "Se abilitata, sarà supportato l'inserimento della sintassi dell'elenco attività <code>【】</code> e <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Sintassi dell'elenco attività a larghezza intera",+ "editorMarkdownBlockFullWidthTaskListTip": "Se abilitata, sarà supportato l'inserimento della sintassi dell'elenco attività <code>【】</code> e <code>【x】</code>","duplicateCopy": "Crea copia","runeCountWithEmbed": "Caratteri con blocchi incorporati","wordCountWithEmbed": "Parole con blocchi incorporati",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex f6fa802dae..8179451fbb 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "全角タスクリスト構文",- "editorMarkdownInlineFullWidthTaskListTip": "有効にすると、<code>【】</code> および <code>【x】</code> のタスクリスト構文入力がサポートされます",+ "editorMarkdownBlockFullWidthTaskList": "全角タスクリスト構文",+ "editorMarkdownBlockFullWidthTaskListTip": "有効にすると、<code>【】</code> および <code>【x】</code> のタスクリスト構文入力がサポートされます","duplicateCopy": "複製を作成","runeCountWithEmbed": "埋め込みブロックを含む文字数","wordCountWithEmbed": "埋め込みブロックを含む単語数",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex 21b18e2f87..50430635c7 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "전각 작업 목록 구문",- "editorMarkdownInlineFullWidthTaskListTip": "활성화하면 <code>【】</code> 및 <code>【x】</code> 작업 목록 구문 입력을 지원합니다",+ "editorMarkdownBlockFullWidthTaskList": "전각 작업 목록 구문",+ "editorMarkdownBlockFullWidthTaskListTip": "활성화하면 <code>【】</code> 및 <code>【x】</code> 작업 목록 구문 입력을 지원합니다","duplicateCopy": "사본 만들기","runeCountWithEmbed": "임베드 블록 포함 글자 수","wordCountWithEmbed": "임베드 블록 포함 단어 수",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex 7f331ab44b..6c41e0c8db 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Taaklijstsyntaxis met volledige breedte",- "editorMarkdownInlineFullWidthTaskListTip": "Indien ingeschakeld wordt invoer van de taaklijstsyntaxis <code>【】</code> en <code>【x】</code> ondersteund",+ "editorMarkdownBlockFullWidthTaskList": "Taaklijstsyntaxis met volledige breedte",+ "editorMarkdownBlockFullWidthTaskListTip": "Indien ingeschakeld wordt invoer van de taaklijstsyntaxis <code>【】</code> en <code>【x】</code> ondersteund","duplicateCopy": "Kopie maken","runeCountWithEmbed": "Tekens inclusief ingesloten blokken","wordCountWithEmbed": "Woorden inclusief ingesloten blokken",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex 459356c501..8eba54fb4c 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Pełnoszerokowa składnia listy zadań",- "editorMarkdownInlineFullWidthTaskListTip": "Po włączeniu obsługiwane będzie wprowadzanie składni listy zadań <code>【】</code> i <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Pełnoszerokowa składnia listy zadań",+ "editorMarkdownBlockFullWidthTaskListTip": "Po włączeniu obsługiwane będzie wprowadzanie składni listy zadań <code>【】</code> i <code>【x】</code>","duplicateCopy": "Utwórz kopię","runeCountWithEmbed": "Znaki z osadzonymi blokami","wordCountWithEmbed": "Słowa z osadzonymi blokami",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex d6a3ce7474..970853f72b 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Sintaxe de lista de tarefas de largura total",- "editorMarkdownInlineFullWidthTaskListTip": "Quando ativado, será possível inserir a sintaxe de lista de tarefas <code>【】</code> e <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Sintaxe de lista de tarefas de largura total",+ "editorMarkdownBlockFullWidthTaskListTip": "Quando ativado, será possível inserir a sintaxe de lista de tarefas <code>【】</code> e <code>【x】</code>","duplicateCopy": "Criar cópia","runeCountWithEmbed": "Caracteres com blocos incorporados","wordCountWithEmbed": "Palavras com blocos incorporados",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex 35c0cdfe3e..7a05183e47 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Полноширинный синтаксис списка задач",- "editorMarkdownInlineFullWidthTaskListTip": "После включения будет поддерживаться ввод синтаксиса списка задач <code>【】</code> и <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Полноширинный синтаксис списка задач",+ "editorMarkdownBlockFullWidthTaskListTip": "После включения будет поддерживаться ввод синтаксиса списка задач <code>【】</code> и <code>【x】</code>","duplicateCopy": "Создать дубликат","runeCountWithEmbed": "Символы с учётом встроенных блоков","wordCountWithEmbed": "Слова с учётом встроенных блоков",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex 4381472203..1524858b45 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Celošírková syntax zoznamu úloh",- "editorMarkdownInlineFullWidthTaskListTip": "Po povolení bude podporované zadávanie syntaxe zoznamu úloh <code>【】</code> a <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Celošírková syntax zoznamu úloh",+ "editorMarkdownBlockFullWidthTaskListTip": "Po povolení bude podporované zadávanie syntaxe zoznamu úloh <code>【】</code> a <code>【x】</code>","duplicateCopy": "Vytvoriť kópiu","runeCountWithEmbed": "Znaky vrátane vložených blokov","wordCountWithEmbed": "Slová vrátane vložených blokov",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex 61bb14ddf3..3242dd23cd 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "ไวยากรณ์รายการงานแบบเต็มความกว้าง",- "editorMarkdownInlineFullWidthTaskListTip": "เมื่อเปิดใช้งาน จะรองรับการป้อนไวยากรณ์รายการงาน <code>【】</code> และ <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "ไวยากรณ์รายการงานแบบเต็มความกว้าง",+ "editorMarkdownBlockFullWidthTaskListTip": "เมื่อเปิดใช้งาน จะรองรับการป้อนไวยากรณ์รายการงาน <code>【】</code> และ <code>【x】</code>","duplicateCopy": "สร้างสำเนา","runeCountWithEmbed": "อักขระรวมบล็อกฝัง","wordCountWithEmbed": "คำรวมบล็อกฝัง",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex 07ae413081..e92fb796e5 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Tam genişlikli görev listesi sözdizimi",- "editorMarkdownInlineFullWidthTaskListTip": "Etkinleştirildiğinde <code>【】</code> ve <code>【x】</code> görev listesi sözdizimi girişi desteklenir",+ "editorMarkdownBlockFullWidthTaskList": "Tam genişlikli görev listesi sözdizimi",+ "editorMarkdownBlockFullWidthTaskListTip": "Etkinleştirildiğinde <code>【】</code> ve <code>【x】</code> görev listesi sözdizimi girişi desteklenir","duplicateCopy": "Kopya oluştur","runeCountWithEmbed": "Gömülü bloklarla karakterler","wordCountWithEmbed": "Gömülü bloklarla kelimeler",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex b6c9f6a07d..e0e3862dab 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "Повноширинний синтаксис списку завдань",- "editorMarkdownInlineFullWidthTaskListTip": "Після ввімкнення підтримуватиметься введення синтаксису списку завдань <code>【】</code> і <code>【x】</code>",+ "editorMarkdownBlockFullWidthTaskList": "Повноширинний синтаксис списку завдань",+ "editorMarkdownBlockFullWidthTaskListTip": "Після ввімкнення підтримуватиметься введення синтаксису списку завдань <code>【】</code> і <code>【x】</code>","duplicateCopy": "Створити дублікат","runeCountWithEmbed": "Символи з урахуванням вбудованих блоків","wordCountWithEmbed": "Слова з урахуванням вбудованих блоків",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex b265fbec78..ca0a952f3f 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "全角任务列表语法",- "editorMarkdownInlineFullWidthTaskListTip": "启用后将支持 <code>【】</code> 和 <code>【x】</code> 任务列表语法输入",+ "editorMarkdownBlockFullWidthTaskList": "全角任务列表语法",+ "editorMarkdownBlockFullWidthTaskListTip": "启用后将支持 <code>【】</code> 和 <code>【x】</code> 任务列表语法输入","duplicateCopy": "创建副本","runeCountWithEmbed": "含嵌入块字符数","wordCountWithEmbed": "含嵌入块字数",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex f54923361e..7b32db9bf3 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -1,6 +1,6 @@{- "editorMarkdownInlineFullWidthTaskList": "全形任務列表語法",- "editorMarkdownInlineFullWidthTaskListTip": "啟用後將支援 <code>【】</code> 和 <code>【x】</code> 任務列表語法輸入",+ "editorMarkdownBlockFullWidthTaskList": "全形任務列表語法",+ "editorMarkdownBlockFullWidthTaskListTip": "啟用後將支援 <code>【】</code> 和 <code>【x】</code> 任務列表語法輸入","duplicateCopy": "建立副本","runeCountWithEmbed": "含嵌入區塊字元數","wordCountWithEmbed": "含嵌入區塊字數",diff --git a/app/src/config/tabs/editorTab.ts b/app/src/config/tabs/editorTab.tsindex 71152b99dc..a9aff92ad9 100644--- a/app/src/config/tabs/editorTab.ts+++ b/app/src/config/tabs/editorTab.ts@@ -279,6 +279,10 @@ const registerEditorMarkdownBlockGroup = (tab: SettingTabBuilder) => {title: window.siyuan.languages.codeBlockMiddleDot,desc: window.siyuan.languages.codeBlockMiddleDotTip,});+ group.switch("editor.markdown.blockFullWidthTaskList", {+ title: window.siyuan.languages.editorMarkdownBlockFullWidthTaskList,+ desc: window.siyuan.languages.editorMarkdownBlockFullWidthTaskListTip,+ });};const registerEditorMarkdownInlineGroup = (tab: SettingTabBuilder) => {@@ -315,10 +319,6 @@ const registerEditorMarkdownInlineGroup = (tab: SettingTabBuilder) => {title: window.siyuan.languages.editorMarkdownInlineFullWidthStrikethrough,desc: window.siyuan.languages.editorMarkdownInlineFullWidthStrikethroughTip,});- group.switch("editor.markdown.inlineFullWidthTaskList", {- title: window.siyuan.languages.editorMarkdownInlineFullWidthTaskList,- desc: window.siyuan.languages.editorMarkdownInlineFullWidthTaskListTip,- });group.switch("editor.markdown.inlineMark", {title: window.siyuan.languages.editorMarkdownInlineMark,desc: window.siyuan.languages.editorMarkdownInlineMarkTip,diff --git a/app/src/protyle/render/luteMarkdownSyntax.test.ts b/app/src/protyle/render/luteMarkdownSyntax.test.tsindex 7a0e6a8968..babea80a4d 100644--- a/app/src/protyle/render/luteMarkdownSyntax.test.ts+++ b/app/src/protyle/render/luteMarkdownSyntax.test.ts@@ -17,7 +17,7 @@ describe("applyLuteMarkdownSyntax", () => {inlineMath: false,inlineStrikethrough: true,inlineFullWidthStrikethrough: true,- inlineFullWidthTaskList: true,+ blockFullWidthTaskList: true,inlineMark: false,codeBlockMiddleDot: true,};diff --git a/app/src/protyle/wysiwyg/turnIntoList.ts b/app/src/protyle/wysiwyg/turnIntoList.tsindex bc48d148c6..5479bcedcd 100644--- a/app/src/protyle/wysiwyg/turnIntoList.ts+++ b/app/src/protyle/wysiwyg/turnIntoList.ts@@ -23,7 +23,7 @@ export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement:additionalOperations?: IAdditionalOperations) => {const html = decodeHTML(editElement.innerHTML);const taskListMarker = getTaskListMarker(html,- window.siyuan.config.editor.markdown.inlineFullWidthTaskList !== false);+ window.siyuan.config.editor.markdown.blockFullWidthTaskList !== false);if (type !== "NodeCodeBlock" &&// 任务列表首块不需要再更新为任务列表!blockElement.previousElementSibling?.classList.contains("protyle-action--task") &&diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.tsindex 4a119fc7e3..224446e615 100644--- a/app/src/types/config.d.ts+++ b/app/src/types/config.d.ts@@ -495,7 +495,7 @@ declare namespace Config {/*** Whether to enable the full-width task list shortcut*/- inlineFullWidthTaskList: boolean;+ blockFullWidthTaskList: boolean;/*** Whether to enable the inline mark*/diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex cea244f170..b663887e8d 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -511,8 +511,8 @@ func InitConf() {if nil == Conf.Editor.Markdown.CodeBlockMiddleDot {Conf.Editor.Markdown.CodeBlockMiddleDot = defaultEditor.Markdown.CodeBlockMiddleDot}- if nil == Conf.Editor.Markdown.InlineFullWidthTaskList {- Conf.Editor.Markdown.InlineFullWidthTaskList = defaultEditor.Markdown.InlineFullWidthTaskList+ if nil == Conf.Editor.Markdown.BlockFullWidthTaskList {+ Conf.Editor.Markdown.BlockFullWidthTaskList = defaultEditor.Markdown.BlockFullWidthTaskList}util.MarkdownSettings = Conf.Editor.Markdowndiff --git a/kernel/util/lute.go b/kernel/util/lute.goindex 6e3c1872a7..bb8a4682b4 100644--- a/kernel/util/lute.go+++ b/kernel/util/lute.go@@ -35,7 +35,7 @@ var MarkdownSettings = &Markdown{InlineMath: true,InlineStrikethrough: true,InlineFullWidthStrikethrough: false,- InlineFullWidthTaskList: new(true),+ BlockFullWidthTaskList: new(true),InlineMark: true,CodeBlockMiddleDot: new(true),}@@ -49,7 +49,7 @@ type Markdown struct {InlineMath bool `json:"inlineMath"` // 是否启用行级公式InlineStrikethrough bool `json:"inlineStrikethrough"` // 是否启用行级删除线InlineFullWidthStrikethrough bool `json:"inlineFullWidthStrikethrough"` // 是否启用全角行级删除线- InlineFullWidthTaskList *bool `json:"inlineFullWidthTaskList"` // 是否启用全角任务列表快捷输入+ BlockFullWidthTaskList *bool `json:"blockFullWidthTaskList"` // 是否启用全角任务列表快捷输入InlineMark bool `json:"inlineMark"` // 是否启用行级标记CodeBlockMiddleDot *bool `json:"codeBlockMiddleDot"` // 是否启用中点代码块快捷输入}