$ comrak -e footnotes
Hi[^x].

[^x]: A greeting.
$ comrak -e footnotes
Here is a[^nowhere] footnote reference,[^1] and another.[^longnote]

This is another note.[^note] And footnote[^longnote] is referenced again.

[^note]: Hi.

[^1]: Here is the footnote.

[^longnote]: Here's one with multiple blocks.

    Subsequent paragraphs are indented.

        code

This is regular content.

[^unused]: This is not used.
$ comrak -e footnotes
Here is a footnote reference.[^AB] and [^ab]

[^aB]: Here is the footnote.
$ comrak -e footnotes
Here is a footnote reference.[^😄ref]

[^😄ref]: Here is the footnote.
$ comrak -e footnotes
Foo.[^one two]

[^one two]: Here is the footnote.
$ comrak -e footnotes -e table
A footnote in a paragraph[^1]

| Column1   | Column2 |
| --------- | ------- |
| foot [^1] | note    |

[^1]: a footnote
$ comrak -e footnotes -e superscript
Here is a footnote reference.[^1]

Here is a longer footnote reference.[^ref]

e = mc^2^.

[^1]: Here is the footnote.
[^ref]: Here is another footnote.