frostming/marko

reference-style link will not render if the reference is the last line in file

Closed this issue · 1 comments

The following markdown code renders perfectly fine:

[1]

[1]: https://example.org

Result:

<p><a href="https://example.org">1</a></p>

However, when removing the last empty line, the link will not render properly:

[1]

[1]: https://example.org

Result:

<p>[1]</p>
<p>[1]: https://example.org</p>

Thank you :)