md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

commit c52a50a3dbe065da5a428cd5c51fec005e29d314
parent f0103c16e18a9328fb535ffbac0d4d3a81043852
Author: Martin Mitas <mity@morous.org>
Date:   Mon, 24 Jul 2017 21:07:09 +0200

pathological_tests.py: Add test for reference definition lookup.

Diffstat:
Mtest/pathological_tests.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/pathological_tests.py b/test/pathological_tests.py @@ -61,7 +61,10 @@ pathological = { re.compile("^<p>[e`]*</p>\r?\n$")), "many links": ("[t](/u) " * 50000, - re.compile("(<a href=\"/u\">t</a> ?){50000}")) + re.compile("(<a href=\"/u\">t</a> ?){50000}")), + "many references": + ("".join(map(lambda x: ("[" + str(x) + "]: /url\n\n[0]\n\n"), range(1,65000))), + re.compile("^(<p>\\[0\\]</p>\r?\n)*$")), } whitespace_re = re.compile('/s+/')