mixu/markdown-styles

GitHub style ignores “text” code block formatting

antonkravc opened this issue · 1 comments

From what I understand, if I just use a code block without specifying the language, GitHub style attempts to guess the language and apply appropriate syntax highlighting.

[1, 2, 3, 4]

To avoid that and present raw text without highlighting, a “text” keyword exists.

[1, 2, 3, 4]

But whenever I use this option I always get the same formatting as if I didn’t use it.

EDIT: After publishing this issue it seems that even GitHub doesn’t highlight anything in this snippet while the script does.

I get the same issue. The text blocks are forced to be javascript. The text keyword seems to be ignored:

```text
Just some text
```