Skip to content

Commit

Permalink
Fix \href{}{}
Browse files Browse the repository at this point in the history
Fixes yihui#22.
  • Loading branch information
joshuaulrich committed Mar 15, 2024
1 parent 2c60f99 commit 98757d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ reconstruct = function(rd) {
if (is.null(rd)) return()

if (is.list(rd)) {
multi = c('\\section', '\\subsection', '\\item', '\\tabular', '\\eqn', '\\deqn', '\\link')
multi = c('\\section', '\\subsection', '\\item', '\\tabular', '\\eqn', '\\deqn', '\\link', '\\href')
if (length(tag(rd)) && tag(rd) %in% multi) {
if (tag(rd) == '\\link')
return(paste('\\link', sprintf('[%s]', attr(rd, 'Rd_option')), '{', rd, '}', sep = ""))
Expand Down

0 comments on commit 98757d0

Please sign in to comment.