I am facing an issue with a markdown filter where the content of component.doc
is set to update through a websocket. Despite updating the scope's component, the filtered content remains unchanged.
Is there a way to dynamically refresh the v-html
in the code snippet below?
// Markdown Filter
Vue.filter('markdown', (value) => marked(value))
// Implementation
<div v-html="component.doc | markdown"></div>