yes, I know I used singlequotes there in lieu of backticks.
I didn’t wanna try and figure out how to escape a code fence in a code fence in a discourse post, and It isn’t really relevant
additionally, it might be nice if one could select the styling of a code-fenceed blob o text at the codefence scope… IE if one wanted to have blobs of code which represented files, vs commands… and so forcing some to be a specific style and otheres a different style, (or the default style specified in the site config)
but it doesn’t seem like that’s a thing that’s doable at the moment… not specifically chomping at the bit for it, hence mentioning as a casual aside… but it seemed valuable so I thought I’d mention it.
Thanks in advance.
I sincerely hope your day is going awesomely.
Life is short, and beauty is everywhere. W
codeBlockContext is current . of render-codeblock.html template context
transform.HighlightCodeBlock returns .Inner and .Wrapped
.Inner is the highlighted code only
.Wrapped is the default codeblock render without custom template
NOTE: i recommend to set markup.highlight.noClasses to false and use external stylesheet, because you will use the .Inner return from transform.HighlightCodeBlock, it’s not included with the injected <pre> tag with style attribute