From 6e53256e04afbecae3e72415630b6991084eb2aa Mon Sep 17 00:00:00 2001 From: David Gohel Date: Fri, 23 Jun 2023 20:18:53 +0200 Subject: [PATCH] fix: make sure 'gfm' format is rendered as an image see #532 --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ R/printers.R | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 27f7b708..55eaf638 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: flextable Type: Package Title: Functions for Tabular Reporting -Version: 0.9.2 +Version: 0.9.3.001 Authors@R: c( person("David", "Gohel", role = c("aut", "cre"), email = "david.gohel@ardata.fr"), diff --git a/NEWS.md b/NEWS.md index 959c90e7..96a088e3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +# flextable 0.9.3 + +## Issues + +- Make sure 'gfm' format is rendered as an image. + # flextable 0.9.2 ## Issues diff --git a/R/printers.R b/R/printers.R index 9ff1bda9..8be4919b 100644 --- a/R/printers.R +++ b/R/printers.R @@ -665,7 +665,7 @@ knit_print.flextable <- function(x, ...) { } else if (!is.null(getOption("xaringan.page_number.offset"))) { #xaringan str <- knit_to_html(x, bookdown = FALSE, quarto = FALSE) str <- asis_output(str, meta = html_dependencies_list(x)) - } else if (is_html_output()) { # html + } else if (is_html_output(excludes="gfm")) { # html str <- knit_to_html(x, bookdown = is_bookdown, quarto = is_quarto) str <- raw_html(str, meta = html_dependencies_list(x)) } else if (is_latex_output()) { # latex