route.js:72Uncaught TypeError: Cannot read property 'replace' of undefined
Please report this to https://github.com/chjj/marked.
webpack
var marked = require("marked")
Vue.filter('marked',marked)
I think the second argument of the .filter() method has to be a function that transforms the input:
Vue.filter('marked', function(input){
return marked(input)
})
Thks, I know why i not work , i have try Vue.filter('marked',function(input){
return marked(input);
}); and filters:{
marked : marked
} . All works , beause the templates <div>
{{{input | marked}}}
</div> input is undefined in the component , defined it in component data ,so fixed
Most helpful comment
Example:
https://jsfiddle.net/yyx990803/oe7axeab/