jpt580.github.io/use-markdown.js

13 lines
282 B
JavaScript
Raw Normal View History

"use strict";
function loadMdFromUrl(url) {
2018-03-13 12:02:18 +01:00
$.get(url, function(data) {
var converter = new showdown.Converter();
2018-03-13 12:02:18 +01:00
var html = converter.makeHtml(data);
$("#markdown-content").html(html);
});
}
// TODO: Add more, add menu, add ...
loadMdFromUrl("content/hello.md");