Breaks not working with template string
Opened this issue · 0 comments
alisonmoura commented
Describe the bug
Passing a template string with line breaks isn't work
To Reproduce
- In a Vue component, create a template string variable, like:
data() {
return {
content: `
# Title
Some text
`
}
}
- On the component's HTML, use
<vue3-markdown-it :source="post.content" :breaks="true"></vue3-markdown-it>
- The result doesn't inset the
br
tag
Expected behavior
To inset the br
tag