site/frontend/src/Utils.js

10 lines
235 B
JavaScript
Raw Normal View History

2016-12-14 19:54:17 +00:00
// Module App.BlogEntry
exports.mdify = function(id) {
var converter = new showdown.Converter()
elem = document.getElementById(id);
md = elem.innerHTML;
elem.innerHTML = unescape(converter.makeHtml(md));
2016-12-14 19:54:17 +00:00
return "done :)";
}