window.addEventListener('load', function() { 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']); var domRenderer = DomRenderer({fun: fun, md: md, dom: dom}); var navigation = Navigation({async: async, cache: cache, fun: fun, md: md, dom: dom, domRenderer: domRenderer}); domRenderer.replaceMarkdown(); navigation.hijackLinks(); });