cmark

My personal build of CMark ✏️

Commit
b5c4a228252d8351ca42c0ae3bca626dabfff66d
Parent
04539263eaeb06629a49fc5d531166e84162dd84
Author
John MacFarlane <jgm@berkeley.edu>
Date

Added pathological test for #178 (quadratic).

The new "multiple of 3" rule defeats one of our optimizations.

Diffstat

1 file changed, 3 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified test/pathological_tests.py 3 3 0
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
@@ -38,6 +38,9 @@ pathological = {
     "mismatched openers and closers":
                  (("*a_ " * 50000),
                   re.compile("([*]a[_] ){49999}[*]a_")),
+    "openers and closers multiple of 3":
+                 (("a**b" + ("c* " * 50000)),
+                  re.compile("a[*][*]b(c[*] ){49999}c[*]")),
     "link openers and emph closers":
                  (("[ a_" * 50000),
                   re.compile("(\[ a_){50000}")),