Publ: Fenced code blocks

Last updated:
Source file: /home/fluffy/dev.beesbuzz.biz/tests/content/fenced code.md

Code block in the intro:

Code block in the intro:

This is a text file.

It contains a lot of text.

Second code block in the intro:

#include <cstdlib>

/* this is a multi-line comment

It's important to make sure that this works
*/

int badlyFormattedFunction()
{
    // Who puts the open brace on its own line like that?

    // (lots of people)
    return 0;
}

int main() {
    std::cout << "Hello world" << std::endl;
    return 0;
}
This is text with no declared language.
a caption
This code block has no declared language.

Oh well!
This code block declares an unknown language.

As a result, we treat it as plain text.

foo

invalid.py
def foo():
    return None + "bar"

def bar():
    return "bar" + foo()

bar

![literal escape on the first exclamation mark](foo)
![a blank line works too]()
A caption line
![An image line]()

Arguments:

cat << EOF
This code has had highlighting disabled.

Test 1
Test 2
EOF
<span>This code has had number links disabled</span>
No declared language, and disabled number links
number links explicitly set True
but there is no declared language
! first line has !
second line does not
! first line is blank
! empty caption