From 7ff8d282d55ab5291098718b42f716652f4131cd Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Wed, 11 Dec 2024 10:54:59 -0600 Subject: [PATCH] amend 6975ca4b520d324107258518df4e4e951f883eb9: the format is in the second () --- R/format.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/format.R b/R/format.R index 3cd8bf7..97a4273 100644 --- a/R/format.R +++ b/R/format.R @@ -116,7 +116,7 @@ yaml_body = function(text) { names(out)[names(out) == i] = fmt[i] } # normalize format names `(lite|mark)down::*_format` to `*` - names(out) = gsub('^(lite|mark)down::+([^_]+)_.*', '\\1', names(out)) + names(out) = gsub('^(lite|mark)down::+([^_]+)_.*', '\\2', names(out)) res$yaml$output = out res }