Closed leonardopsantos closed 3 years ago
Unfortunately hugodown currently only supports collapsed code blocks. This is unlikely to change in the near future.
That's a hard-coded option that could be fixed:
if (tidyverse_style) {
knitr$opts_chunk$collapse <- TRUE
knitr$opts_chunk$comment <- "#>"
knitr$opts_chunk$fig.align <- "center"
knitr$opts_chunk$out.width <- "700px"
}
If I know enough R, I'd fix it myself.
Collapsed code blocks are a strong assumption that's woven through the syntax highlighting and css. It's not a simple change.
Ah, understood! Many thanks for the clarification.
Hi there! I'm having a bit of trouble making hugodown produce code blocks that aren't collapsed (R code a different block as the eval result). Say that I have the following R code block:
This will generate the following MD:
What I would like is to have them in separate
div
s. I'm able to achieve that by having two separate code blocks:Which will yield me
How can I achieve the same result without having to use two separate code blocks?
Thanks!!