Fossil SCM
Indented fenced code blocks with blank lines in Markdown
c8920f5e240bf53…
· opened 3 years, 5 months ago
- Type
- Feature_Request
- Priority
- Immediate
- Severity
- Minor
- Resolution
- Not_A_Bug
- Subsystem
- —
- Created
- Nov. 11, 2022 1:39 p.m.
An indented fenced code block is markup like this:
> ~~~
Text goes here
~~~
This works great as long as the text does not contain a blank line.
But it does not work if the text does hold a blank line. Fenced
code blocks with out the indentation (without the initial ">") work
fine with blank lines.
It would be great if the markdown formatter could be fixed so that indented fenced code blocks work.
Comments (2)
An indented fenced code block is markup like this:
> ~~~
Text goes here
~~~
This works great as long as the text does not contain a blank line.
But it does not work if the text does hold a blank line. Fenced
code blocks with out the indentation (without the initial ">") work
fine with blank lines.
It would be great if the markdown formatter could be fixed so that indented fenced code blocks work.
Studying the code reveals that the indentation mark must be repeated after each blank line. (It can also be repeated on every line, but must at a minimum be repeated after blank lines.) That is apparently how Markdown is suppose to work.
Example:
> ~~~
First line
Second line
> Third line
~~~
The extra ">" at the start of "Third line" makes it work:
~~~ First line Second line
Third line~~~