executablebooks / mistletoe-ebp

The EPB fork of mistletoe: A fast, extensible and spec-compliant Markdown parser in pure Python.
https://mistletoe-ebp.readthedocs.io
MIT License
4 stars 1 forks source link

Add footnote definition/reference tokens #7

Closed chrisjsewell closed 4 years ago

chrisjsewell commented 4 years ago

This PR introduces an initial implementation of footnotes:

[^a]

[^a]: a footnote

NOTE: currently this only supports single line footnotes, but it is intended that this will eventually support multi-line:

[^a]

[^a]: a footnote

    with a block below, that can contain

    > quotes

    and other block/span elements

and is terminated on the first unindented line,
that occurs after an empty line.