vue-markdown
vue-markdown copied to clipboard
New line doesn't transform in to <br>
New line \n doesn't transform in to <br>. It outputs as <p>
Ran into this as well. Nasty bug. Anyone find a workaround?
Edit: Found a workaround. I configured markdown-loader with vue.config.js and injected markdown through v-html. Now it works fine. :)
@adi518 could you share more details about this workaround please?
Other workaround, use :source and es6 templates... that will preserve white space and work fine.
@samcampisi See: https://github.com/adi518/vue-facebook-login-component/blob/master/packages/docs/vue.config.js
Yet another workaround...
<!-- whitespace: 'preserve' -->
<vue-markdown>
- ichi
- ni
- san
</vue-markdown>
<!-- whitespace: 'condense' -->
There is probably a way to do this at a higher level