Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub style ignores “text” code block formatting #66

Open
antonkravc opened this issue Nov 20, 2018 · 1 comment
Open

GitHub style ignores “text” code block formatting #66

antonkravc opened this issue Nov 20, 2018 · 1 comment

Comments

@antonkravc
Copy link

antonkravc commented Nov 20, 2018

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
Copy link

tosiara commented Jun 28, 2020

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

```text
Just some text
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants