Skip to content

Commit

Permalink
fix: md task list - use same config as client
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 12, 2022
1 parent dbd7c26 commit afafb4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/components/editor/editor-markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion server/modules/rendering/markdown-tasklists/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
}

0 comments on commit afafb4f

Please sign in to comment.