Commit 115472a3 authored by Hinaloe's avatar Hinaloe Committed by Nicolas Giard

fix: exclude non-class attributes from markdown rendering in editor preview (#1251)

parent 46630e16
......@@ -233,7 +233,9 @@ const md = new MarkdownIt({
return `<pre class="line-numbers"><code class="language-${lang}">${str}</code></pre>`
}
})
.use(mdAttrs)
.use(mdAttrs, {
allowedAttributes: ['id', 'class', 'target']
})
.use(mdEmoji)
.use(mdTaskLists, {label: true, labelAfter: true})
.use(mdExpandTabs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment