mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 251 forks source link

GitHub style ignores “text” code block formatting #66

Open antonkravc opened 5 years ago

antonkravc commented 5 years ago

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.

tosiara commented 4 years ago

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

```text Just some text ```