Skip to content

Commit

Permalink
flextable > v0.9.1 now: davidgohel/flextable#539
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 1, 2023
1 parent cedaac9 commit 565bd99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions R/ebook.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ resolve_refs_md = function(content, ref_table, to_md = output_md()) {
id = if (type %in% c(theorem_abbr, 'fig', 'tab')) {
sprintf('<span id="%s"></span>', j)
} else ''
# TODO: get rid of this hack https://github.com/davidgohel/flextable/pull/539
if (type == 'tab' && xfun::check_old_package('flextable', '0.9.1')) id = ''
label = label_prefix(type, sep = sep)(ref_table[j])
content[i] = sub(m, paste0(id, label, ' '), content[i])
break
Expand Down

0 comments on commit 565bd99

Please sign in to comment.