How about changing this to:
```coffeescript
unless editor.getGrammar().scopeName in ["source.gfm", "source.litcoffee"]
```