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

performance issue #121

Open wasap opened 4 years ago

wasap commented 4 years ago

i tried to render https://raw.githubusercontent.com/request/request/master/README.md. it lags so much and uses all my CPU, my inputs becomes unclickable replaced this package with showdown. and now it works with no load <div v-html="mdHTML" /> and script

const showdown = require('showdown');
const converter = new showdown.Converter();
const md = await fetch(this.helpText).then(res => res.text());
this.mdHTML = converter.makeHtml(md);
wasap commented 4 years ago

this watchers kills my pc https://github.com/miaolz123/vue-markdown/blob/254e36e8f520288110eb657c6d2eb309e711419e/src/VueMarkdown.js#L229-L237