commonmark-hs
commonmark-hs copied to clipboard
New pathological parsing for fenced divs
python -c 'n=800; print("::: {#id}\n" * n + "a\n" + ":::\n" * n)'
This is a problem with the new fix for detecting fence closers. At each close we need to iterate through all subordinate fenced divs in the stack.
Quadratic time.