Sorry for hijacking this old thread. The quoted example is nearly what I was looking for. Only problem I have is that this snipped generates line numbers which I want to get rid off.
I’ve tried using nohighlight=false as this turns of line numbers but without luck also wrapping my code in triple backticks won’t work as it also generates line numbers. Is there a way to turn the numbering off for selected passages?
I know I could change my config.toml from
lineNos = true
into
lineNos = false
But mostly I want the numbering to be present.
Only using go {linenos=false} works (regarding no line numbers) but then I get syntax highlighting which isn’t what I need in this place.
Presuming your site/theme is not using a third-party syntax highlighter, this markdown will produce a code block without syntax highlighting or line numbers: