Skip to content

Commit

Permalink
amend 6975ca4: the format is in the second ()
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 11, 2024
1 parent 0c867df commit 7ff8d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7ff8d28

Please sign in to comment.