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