2019-02-05 11:31:42 +01:00
|
|
|
window.addEventListener('load', function() {
|
2019-02-15 14:13:43 +01:00
|
|
|
var async = unitJS.Async();
|
|
|
|
var cache = unitJS.Cache();
|
|
|
|
var dom = unitJS.Dom();
|
|
|
|
var fun = unitJS.Fun();
|
|
|
|
var md = new Remarkable({html: true});
|
|
|
|
md.block.ruler.enable(['footnote']);
|
2019-02-16 08:13:14 +01:00
|
|
|
var comments = Comments({async: async, cache: cache, dom: dom});
|
|
|
|
var domRenderer = DomRenderer({comments: comments, fun: fun, md: md, dom: dom});
|
2019-02-15 14:13:43 +01:00
|
|
|
var navigation = Navigation({async: async, cache: cache, fun: fun, md: md, dom: dom, domRenderer: domRenderer});
|
|
|
|
domRenderer.replaceMarkdown();
|
|
|
|
navigation.hijackLinks();
|
2019-02-05 11:31:42 +01:00
|
|
|
});
|