Unwanted syntax highlighting
Closed
Unwanted syntax highlighting
Created by: fenhl
The docs say:
Only the fenced code blocks support syntax highlighting.
However, as you can see on this wiki page, which uses indented code blocks, this is not true. This is especially jarring for this project, since it is a language.
The project's license is also being highlit, even though it is a plain text file with no extension.
I think syntax highlighting should only be applied to files with an appropriate extension, or, within markdown, fenced code blocks with a language annotation.
Created by: jvstein
Yes, it's still a problem on wiki pages. Even the help documentation has highlighting in the example that says it shouldn't.
https://gitlab.com/help/markdown/markdown#code-and-syntax-highlighting
By Administrator on 2014-07-20T00:24:19 (imported from GitLab project)
Created by: Rufflewind
It's still an issue. The only workaround is to use fenced code-blocks all the time with
no-highlight
. According to this issue and also the highlight.js docs, this can be disabled using:hljs.configure({languages: []});
By Administrator on 2014-11-10T23:25:50 (imported from GitLab project)
Created by: Razer6
This is fixed by https://github.com/gitlabhq/gitlabhq/pull/8425
By Administrator on 2015-01-22T07:21:27 (imported from GitLab project)