Markdown: Fix sections parsing with code blocks
|Assignee:||Go MAEDA||% Done:|
When there are spaces present between the code fence and the info string (as in
~~~ ruby vs
~~~ruby), the sections parsing fails to recognize the beginning of the code block and thus sections following such a block are not recognized correctly. Since it is perfectly valid Markdown to have one or more spaces in that place, the sections parsing should support that as well.
The patch extends an existing test case to demonstrate the behavior and fixes it by making the regular expression that is used more lenient.
#2 Updated by Go MAEDA almost 2 years ago
- File firstname.lastname@example.org added
- File email@example.com added
- File firstname.lastname@example.org added
- Target version set to 4.0.6
Confirmed the issue.
The patch can be applied cleanly to the trunk and 4.0-stable. Setting the target version to 4.0.6.
Test Wiki page:
Without the patch:
With the patch: