Open avxkim opened 5 years ago
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.
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
New line
\n
doesn't transform in to<br>
. It outputs as<p>