Closed mjskay closed 4 years ago
yeah, this can be easily implemented. Just requires some handling of the lists of different lengths. All of the info gets passed as options$params.src
and if a label is not explicitly named, we get a list of three character vectors of different lengths. So basically need to handle the case where labels are and not are explicitly specified
Oh I thought it already worked? I left the arg name off in my tests and it worked fine interactively anyway (didn't test knitting)
It was throwing errors while knitting, and looking at the (now old) code I can't imagine it working without these changes
Ha 🙂
Why use the explicitly named parameter for generated block labels / in the docs? I didn't even know you could do this:
When this works equally well and is consistent with every other instance of named blocks in markdown I've seen:
I'd say it's better to go with what people tend to see / know from other contexts? (also is shorter, which is nice given the verbose names). Unless I'm crazy and people actually use the
label
parameter by name.