A markdown variant

I use a version of markdown with a few extra features, some custom and some commonplace.

1. Features

The usual things like mathematics and

Make a citation with :cite[hello]. Currently the citation id is looked up from a huge bibtex file. But the hope is to have it lookup citations automatically.

Frontmatter is supported with --- tags:

(1)
---
title: Hello world
---

2. Directives

Markdown directives are used for custom elements.

(2)
Inline directives can put content inline :hello[world]
:::sidenote
This is a block sidenote.
:::

Directives can also be decorated with {#hello.world data-kind="eqn"} things, which can give the element custom ids, classes and attributes. If a directive appears in a markdown ast, by default the renderer treats it as an html element.

3. Goals

4. Prior work