Closed gynvael-hexarcana closed 1 month ago
Triple-backtick codeblocks are not part of standard Markdown syntax. You need to enable the Fenced Code extension in order to use them.
Note: it does not matter whether there are empty lines or not.
@mitya57 Thank you! I see I trolled myself testing this on lines like this:
``` One line Two lines ```
...which now I see is just interpreted as "single backtick opening" "single backtick closing", "single backtick opening".
Whoops ;) I'm closing the issue.
According to the documentation (and usual way markdown works) empty lines – including at the beginning and end – should work as expected. For example, the documentation shows this example:
However this doesn't seem to work in the current version of markdown library (tested on 3.6, though I think it's the same behavior on 3.5 and 3.4).
Example code:
a three-line code block
def func():
return
Expected output: (give or take)
Actual output:
Note: A workaround is to enable SuperFences extension.