HermanMartinus/bearblog

"go" word inside code block activates syntax highlighting

reueljonathan opened this issue · 2 comments

Hi!

I was writing a post, and at a specific part I tried to use a code block to show the file tree of a project using golang. Turns out that if the content in the block contains the word "go", it tries to infer the syntax as tsql and enables the syntax highlight.

image

@reueljonathan

Heya!

You can always set the syntax to something different like so:

```my-new-syntax

So the file listing could be written as such:

```text
... listing comes here
```

So it would become the following:
image

Cheers!

Thanks @YannickFricke for responding. That's exactly how this is resolved.

@reueljonathan here is a list of the languages supported by the code renderer: https://pygments.org/languages/