(function(){
var scripttags = document.getElementsByTagName('script')
, i, l
, s, d
for (i = 0, l = scripttags.length; i !== l; i++){
if (scripttags[i].type === 'text/x-markdown') {
s = scripttags[i]
d = document.createElement('div')
d.innerHTML = (new Markdown.Converter()).makeHtml(s.innerHTML)
s.parentNode.insertBefore(d, s)
}
}
})()
No comments:
Post a Comment