Upgrade markdown package to v7.2.0 #1907
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additionally, I found a bug in the
unordered list followd by empty list item
test.In previous versions of the markdown package, parsing this markdown
- list item 1\n -
resulted in the following structure:A list (li) consisting of one item (ul). And in this item, there was a header (h2) containing the text
list item 1
The header appeared in the first list item because during internal transformations, the text initially turned into
list item 1\n -
, which was then interpreted as header syntax. In the new version of the package, this behavior has been corrected, and now this markdown is parsed as a list with one item containing the textlist item 1\n -
I modified the test to accurately reflect its description. That is, now it indeed contains a list of two items, the last of which is empty