Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Breaks not working with template string #153

Open
alisonmoura opened this issue Mar 19, 2021 · 0 comments
Open

Breaks not working with template string #153

alisonmoura opened this issue Mar 19, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@alisonmoura
Copy link

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

@alisonmoura alisonmoura added the bug Something isn't working label Mar 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant