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

Allow `Footnote` to include multiple lines #11

Open chrisjsewell opened 4 years ago

chrisjsewell commented 4 years ago

Currently, footnote definitions may only be on a single line. However, it is desirable, that any preceding text which is indented by four or more spaces, will also be included in the footnote definition, e.g.

[^myref]: This is the footnote definition.

    That continues for all indented lines

    Plus any precding unindented lines,
that are not separated by a blank line

This is not part of the footnote.