BareGit
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>MacroDown live preview</title>
    <link rel="stylesheet" href="preview.css">
    <script type="module" src="preview.js"></script>
</head>
<body>
    <header>
        <h1>MacroDown</h1>
        <p>Live Markdown and macro preview · rendered in your browser</p>
        <p id="status" role="status">Loading renderer…</p>
    </header>
    <main>
        <section>
            <label for="source">Source</label>
            <textarea id="source" spellcheck="false"># Hello, MacroDown

Edit this document to update the preview.

%def[greet]{name}{Hello, %strong{%name}!}

%greet{World}

Unicode works too: café, 中文, 🌍.
</textarea>
        </section>
        <section>
            <h2>Preview</h2>
            <iframe id="preview" title="Rendered document" sandbox=""
                referrerpolicy="no-referrer"></iframe>
        </section>
    </main>
</body>
</html>