Syntax highlighting errors when "yaml" declared with code fence


I keep running into syntax highlighting errors with Markdown documents in Atom when I set off a code block with “yaml” as the language, like this:

- my_collection

Here’s a screenshot: After the YAML code block, the syntax highlighting gets messed up. Here’s another instance:

When I remove “yaml” from the opening fence in the code block, the syntax highlighting returns to normal. How can I add this yaml lexer into Atom’s syntax highlighting logic? Or should I just not use yaml as a language in code blocks?


This looks to be a problem with the language-gfm package. I might be able to troubleshoot it later, but I’m going to tag @Wliu so that there’s awareness of this.


Thanks. It looks like the gfm repo already has this issue identified and logged here.