Closed mhils closed 2 years ago
The AssertionError
makes sense. Commit c3d4e41 added support for ordered lists that don't start at 0, allowing ol tags to end up like <ol start="[number]">
, which would break an assertion that the list startswith <ol>
.
Perhaps replacing the assertion with something like:
assert re.match(r'^<(?:ul|ol).*?>', cuddled_list)
However, I am struggling to get your example to be parsed correctly. I assume the list of arguments is indeed meant to be a list but
I cannot get markdown2 to produce a list with or without the cuddled-lists
extra. I even went to commit ac5e7b9 (before c3d4e41 was merged) and no luck there either
This could very well be true. This issue turned up as part of our pdoc smoke tests where we process Python's stdlib and only make sure that it doesn't crash. I don't think it's meant to be an example of correct markdown, it's just something we observed in the wild.
Righto, that makes a lot more sense.
The following code errors on master:
git bisect
identifies c3d4e41620ca6cacb98e56ee87e31df02912be57 as the first commit (/cc @Crozzers). I'm unable to look into this more closely at the moment, but I figured I'll quickly lodge it. Thank you all for pushing markdown2 forward! :)