Open jpluscplusm opened 11 months ago
@jpluscplusm - can you construct what you need from Hugo primitives (https://cuelang.org/examples/)? i.e. is this just preprocessor shortcomings?
@jpluscplusm - can you construct what you need from Hugo primitives (https://cuelang.org/examples/)? i.e. is this just preprocessor shortcomings?
Yes, this is just the preprocessor. The example on the code-tabs example page displays a file with line numbers: https://cuelang.org/examples/shortcodes/code-tabs/#usage
Is your feature request related to a problem? Please describe.
I'd like to present users of alpha with files that include line numbers, in code blocks created by a
{{{with code...}}}
.Currently, it appears that
#codetab(file.name) linenos="..."
only works in a{{{with upload...}}}
context. Or at least that's my experience, backed up by a quick grep of the preprocessor's code:Describe the solution you'd like
I'd like to be able to include line numbers in the different styles supported by code blocks when presenting files via the
{{{with code...}}}
preprocessor mechanism.Describe alternatives you've considered
I'm currently writing docs that don't refer to line numbers, but instead have inline comments that I refer back to.
Additional context
Discovered whilst working on CL https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1172968.