Open blackst0ne opened 7 years ago
I am looking at the same problem. I will let you know if I come up with anything.
I had this issue too. My fix was to use the source
attribute. So, instead of
<vue-markdown>
{{someVariable}}
</vue-markdown>
I had to do
<vue-markdown :source='someVariable'></vue-markdown>
@Ratismal thank you! It works! :tada:
plus 1, don't render at all
I noticed that the content inside
<vue-markdown>
## This needs to start from the left
</vue-markdown>
@Ratismal 's solution work for me, 2018-6-18
and because I am using Pug, this work:
vue-markdown(:source='markdown')
Full Code:
<template lang='pug'>
div
vue-markdown(:source='markdown')
</template>
I noticed that the content inside can't be nested and needs to start from the left
<vue-markdown> ## This needs to start from the left </vue-markdown>
I guess this is just a result of the markdown rule that indented text is treated as code
I have the same issue as https://github.com/miaolz123/vue-markdown/issues/6.
My vue-file:
The output is just:
I just followed the README.
Am I doing something wrong?