redmine_markdown_extra_formatter
redmine_markdown_extra_formatter copied to clipboard
Indented code blocks can have further indented code sub-blocks.
When trying to format a code block that has indented lines surrounded by blank lines indented inside a list item, the blank-line-surrounded-indented-code ends up in a code sub-block.
Example:
1. Some code if (1) { printf("what?\n"); } 2. Some other code ~~~ while(0) { exit(-1); } ~~~
The if and while blocks are correctly contained in a code block which is part of their respective list items, but the printf and exit lines are surrounded by their own <pre><code></code></pre>
tags because they are surrounded by blank lines and are indented an additional 8 spaces.