extends baseLayout

block body
    #api-docs.markdown-rendered
        - import vibe.d;
        - import std.file;
        - import commonmarkd;
        |!= convertMarkdownToHTML(readFileUTF8(NativePath("./public/docs/" ~ page ~ ".md")), MarkdownFlag.tablesExtension)

block scripts
    - import pastemyst.data : getVersion;

    script(src="/static/scripts/libs/highlight.pack.js?v=#{getVersion()}")

    script.
        hljs.initHighlightingOnLoad();
