-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility between pagedown and flextable #216
Comments
This comes from the fact that flextable uses shadow DOMs and I guess that adding support for web components in |
see the related issue in the Paged.js project https://gitlab.pagedmedia.org/tools/pagedjs/issues/148 and also w3c/DOM-Parsing#58 |
@tvroylandt In order to give a clue, here's an ugly hack. It works with your MWE but I cannot guarantee you that this is safe to use. Please, do not use it!
|
Thanks Romain. This is a big issue in fact. I will make some tests with the Do you think it would be useful in general to implement such support or is it too small to be worthy ? |
I've tested the Since flextable provides a builtin option to disable its use of the shadow DOM, I think that |
Hi I did try to detect
Do you think there is such a test I could do so that I could set |
Thanks, @davidgohel but this can be easily achieved in pagedown because flextable provides the |
@tvroylandt, this is now fixed: the MWE you provided now works well with the development version of pagedown. Thanks for the report! Also thanks to @davidgohel for the tip! |
Hi,
This is both a
flextable
and apagedown
issue but I post it here to begin and will change it if needed.Generating multiples tables in an Rmd is hard. I followed the method here https://community.rstudio.com/t/mixing-purrr-flextable-and-rmarkdown-for-table-outputs/17312/3 which work perfectly with an
rmarkdown::html_document
.But as soon as I tried to change the output format to
pagedown::html_paged
, this create a blank space instead.My guess is that the JS erased the tables since when we look at the HTML output before running the JS, they are here.
I'm using the last CRAN
flextable
version andpagedown
dev version.Exemple here :
this is ok :
while this is not:
Exemple output without any problem
exemple_flex_pb.pdf
And with problem
exemple_flex_pb.pdf
The text was updated successfully, but these errors were encountered: