Skip to content

Commit a5e28a5

Browse files
committed
Don't break the indentation
1 parent 33a231f commit a5e28a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resources/rmd/hooks.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ knitr_hooks <- function(format, resourceDir, handledLanguages) {
409409
} else {
410410
# Newline first and after to ensure Pandoc Fenced Div is correctly parsed
411411
paste0(
412-
options[["indent"]], "\n::: {",
412+
"\n",
413+
options[["indent"]], "::: {",
413414
labelId(label), paste(classes, collapse = " ") ,forwardAttr, "}\n", x, "\n", cell.cap ,
414415
options[["indent"]], ":::\n"
415416
)

0 commit comments

Comments
 (0)