vue-markdown icon indicating copy to clipboard operation
vue-markdown copied to clipboard

performance issue

Open wasap opened this issue 4 years ago • 1 comments

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 avatar May 07 '20 13:05 wasap

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

wasap avatar May 07 '20 13:05 wasap