[text] Add tests (failing) for parsing of empty blocks.
[text] Ignore spaces at the end of heading.
[html5] Ignore undefined footnotes.