From afafb4f4e0d49d76d7c050fedafa0678e121739a Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 12 Feb 2022 17:27:54 -0500 Subject: [PATCH] fix: md task list - use same config as client --- client/components/editor/editor-markdown.vue | 4 ++-- server/modules/rendering/markdown-tasklists/renderer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index e334f07b..6134524d 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -290,12 +290,12 @@ const md = new MarkdownIt({ }) .use(underline) .use(mdEmoji) - .use(mdTaskLists, {label: false, labelAfter: false}) + .use(mdTaskLists, { label: false, labelAfter: false }) .use(mdExpandTabs) .use(mdAbbr) .use(mdSup) .use(mdSub) - .use(mdMultiTable, {multiline: true, rowspan: true, headerless: true}) + .use(mdMultiTable, { multiline: true, rowspan: true, headerless: true }) .use(mdMark) .use(mdFootnote) .use(mdImsize) diff --git a/server/modules/rendering/markdown-tasklists/renderer.js b/server/modules/rendering/markdown-tasklists/renderer.js index 5548e01f..6950acdd 100644 --- a/server/modules/rendering/markdown-tasklists/renderer.js +++ b/server/modules/rendering/markdown-tasklists/renderer.js @@ -6,6 +6,6 @@ const mdTaskLists = require('markdown-it-task-lists') module.exports = { init (md, conf) { - md.use(mdTaskLists, {label: true, labelAfter: true}) + md.use(mdTaskLists, { label: false, labelAfter: false }) } }