Code blocks with incorrect language string cause problems


(Sebastian Brandt) #1

It seems that there is a problem with too many code blocks. Sorry for the long post but it seems the post have to be this long.

The Example:

A Heading

Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.

A second heading

Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text:

Some random sql

Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.

some random sql

A heading which is not working anymore

The Heading stops being a heading when adding the following last code block:

some random sql

(Gerhard Schlager) #2

It’s the SQL in ```SQL that’s causing this. Replace it with ```sql (lowercase) and everything works fine.


(Sebastian Brandt) #3

Thank you for your quick reply!
Your suggestion fixed it!

So that is not a bug?


(Mittineague) #4

No, it’s a “I can break Markdown if I do this”


(Darix) #5

This can also be broken without specifying any languages in the code blocks. not just “wrong” language specifiers.

any suggestions how to fix it in that case?


(Darix) #6

also forcing all code blocks into e.q language “sql” as shown in the first comment does not fix it.