Actions
Patch #32359
closedMarkdown: Fix sections parsing with code blocks
Description
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.
Files
Added by Go MAEDA about 5 years ago
Actions
Eases the regexp used to determine the start of a code block (#32359).
Patch by Jens Krämer.