Open
Description
Currently, we're able to highlight inline code via shortcode as follows.
The {{< highlight python "hl_inline=true" >}}range(){{< /highlight >}} function is used to generate a sequence of numbers.
We can make this usage shorter without shortcode if support a hook to render inline code like render-codeblock
does.
// theme's scoped custom hook
{{ $code := .Text }}
{{ if strings.HasPrefix "#!" }}
{{ highlight ... }}
{{ else }}
<code>{{ $code }}</code>
{{ end }}
The `#!python range()` function is used to generate a sequence of numbers.