HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.36k stars 73 forks source link

"go" word inside code block activates syntax highlighting #255

Closed reueljonathan closed 8 months ago

reueljonathan commented 8 months ago

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

YannickFricke commented 8 months ago

@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!

HermanMartinus commented 8 months ago

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/