diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index 472df31a..8284c4e2 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -233,7 +233,9 @@ const md = new MarkdownIt({ return `
${str}
`
}
})
- .use(mdAttrs)
+ .use(mdAttrs, {
+ allowedAttributes: ['id', 'class', 'target']
+ })
.use(mdEmoji)
.use(mdTaskLists, {label: true, labelAfter: true})
.use(mdExpandTabs)