-
Notifications
You must be signed in to change notification settings - Fork 126
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
Problem with rendering flextable when using equations in pagedown #332
Comments
First, advice on formatting: Use one more backtick to wrap you rmd source. See https://yihui.org/issue/#please-format-your-issue-correctly Then, advice on reprex: With newer R, use Regarding the issue, it seems there are some changes in flextable that requires some adaptation in pagedown. Using flextable 0.8.5, it works but then starting from 0.8.6 it fails with table not showing. So I need to check with @davidgohel what are the changes between these version. Repo has not tagged version so not easy to compare the change, but I'll do a bit of archeology. |
Thanks for CRAN snapshot github repo, we can access the difference in the version Not the commit history, but it could give us some hint still |
It could be related to |
Possibly related to previous problem where the fix does not work anymore |
And this search lead me to this commit I think that flextable now always output shadow dom, and #216 still applies because the @davidgohel I'll see what I can do in pagedown but if there is a way to still not use shadow dom in paged.js context, it would be cool. Otherwise, it will need to wait for an update in Paged.js inside pagedown but I am not sure that paged.js really support shadow dom
So we may be blocked here. 🤔 |
Hi @cderv Is there a way to detect with knitr (or any option) that the format is pagedown? Something like |
I don't think there is yet a straightforward way. 🤔 @yihui just to confirm: Do we have a way in knitr to know which rmarkdkown format as triggered the render ? |
We don't, but we can set a flag similar to Lines 176 to 178 in 410def1
I feel the flag should be set in With that flag (say, named |
that would be great, I could read |
@davidgohel you can try out #333 I have kept |
@sylvaine31 the fix has been applied in 'flextable', you should be able to display flextables again with dev version of 'pagedown' and dev version of flextable. |
Hi,
I'm not sure wheter it is a flextable or a pagedown issue.
When using equations in a pagedown::html_paged Rmd, flextable does not render.
my reprex :
If I replace the equation by a R chunk , the flextable renders without problem :
The text was updated successfully, but these errors were encountered: