Skip to content

Commit f6e4f29

Browse files
committed
consider only first caption in fig-cap
1 parent 14db636 commit f6e4f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/rmd/patch.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ wrap_asis_output <- function(options, x) {
8989
}
9090

9191
# generate output div
92-
caption <- figure_cap(options)
92+
caption <- figure_cap(options)[[1]]
9393
if (nzchar(caption)) {
9494
x <- paste0(x, "\n\n", caption)
9595
}

0 commit comments

Comments
 (0)