Commit 96232cc3 authored by Anton's avatar Anton

Add options to markdown display

parent 78ab1d7d
......@@ -28,7 +28,8 @@
export default {
props: {
content: { type: String, default: '' }
content: { type: String, default: '' },
options: { type: Object, default: () => { return {} } }
},
name: 'MarkdownDisplay',
mounted () {
......@@ -41,7 +42,7 @@
},
methods: {
transformContent (val) {
return sanitizer(marked(val))
return sanitizer(marked(val), this.options)
}
}
}
......
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