1
想象一下,一个普通的网页,其中有人写道:
[此*未处理*降价](https://stackoverflow.com)...触发降价处理通过书签
有没有办法,我可以点击这样一个bookmarklet它处理页面上的任何原始降价?
它不需要到处工作,或准确地说,只是合理简单的网站。
我迄今为止尝试:
javascript:(function(){
document.body.appendChild(document.createElement('script'))
.src='https://cdnjs.cloudflare.com/ajax/libs/showdown/1.7.2/showdown.min.js';
var converter = new showdown.Converter();
//and then?
})();`
但是在这里,我已经运行到ReferenceError: showdown is not defined
。
我已经看过http://heckyesmarkdown.com,但这的确与我想要的完全相反。