In order to get a fenced code block to be recognized by _Markdown Extended_, you must leave a blank line before the opening marker, like this: ~~~~~ some text ``` x = 5 # some code ``` ~~~~~ The blank line is not actually required [by GFM](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#quoting-code). [GFM actual spec](https://github.github.com/gfm/#fenced-code-blocks). Compare to e.g., the `MarkdownEditing > Markdown GFM` Sublime syntax. (On the plus side, the backticks are actually recognized as a separate scope available to be styled. Yay!)