JanGuillermo/vue3-markdown-it

Breaks not working with template string

Opened this issue · 0 comments

Describe the bug
Passing a template string with line breaks isn't work

To Reproduce

  1. In a Vue component, create a template string variable, like:
data() {
   return {
      content: `
# Title

Some text
`
   }
}
  1. On the component's HTML, use
<vue3-markdown-it :source="post.content" :breaks="true"></vue3-markdown-it>
  1. The result doesn't inset the br tag

Expected behavior
To inset the br tag