miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

Doesn't update when content change #44

Open c0dezli opened 6 years ago

c0dezli commented 6 years ago

When I have something like this <vue-markdown>{{post.description}}</vue-markdown> And {{post.description}} changes, VueMarkdown won't hot update, any solutions?

tmdevde commented 6 years ago

<vue-markdown v-bind:source="post.description"></vue-markdown>

v1siond commented 5 years ago

just in case someone is facing this problem and its using JSX, just remove v-bind and use source like any other attribute

<vue-markdown source={post.description}>{post.description}</vue-markdown>