grav icon indicating copy to clipboard operation
grav copied to clipboard

.md parsing: broken code blocks inside list elements

Open u07 opened this issue 3 years ago • 0 comments

Is it a parser bug? This .md is fine:

- list element
   -  deeper list element

` ` `python
code 
code
code

code
code
code

code
code
code
` ` `

image

But this will be broken:

- list element
   -  deeper list element
` ` `python
code 
code
code

code
code
code

code
code
code
` ` `

image

The difference is the empty line after "deeper list element" which makes the codeblock dependent or independent from the list. The problem occurs with dependent blocks only.

I need it dependent, cause it belongs to the list element and so I want to see proper alignment.

u07 avatar Jan 11 '23 11:01 u07