codimd/public/js/pretty.js

9 lines
272 B
JavaScript
Raw Normal View History

2015-05-15 04:58:13 +00:00
var raw = $(".markdown-body").text();
var markdown = LZString.decompressFromBase64(raw);
var result = postProcess(md.render(markdown));
var markdown = $(".markdown-body");
markdown.html(result);
markdown.show();
finishView(markdown);
autoLinkify(markdown);
scrollToHash();