davidgohel / flextable

table farming
https://ardata-fr.github.io/flextable-book/
565 stars 82 forks source link

Flextable in Quarto 1.4 produces corrupt documents #578

Closed BMC1986 closed 9 months ago

BMC1986 commented 1 year ago

Firstly, great to see the crossrefs of Quarto being implemented.

However, now when rendering to quarto with a flextable object I get a corrupt document with the warning of "Word found unreadable content ...". The contents all seem fine if you recover the doc.

Cann reproduce here.

---
title: "FlextableBug"
format: docx
---

## Quarto

```{r}
#| label: tbl-Biology
#| tbl-cap: A nice caption
#| echo: false

library(flextable)

ft <- flextable(head(mtcars))
ft


![image](https://github.com/davidgohel/flextable/assets/115600627/b6727d31-8351-43ec-8b43-1f6051a03c2b)
davidgohel commented 1 year ago

Sorry, we did not change anything about Word quarto captions, we stopped doing anything about it a long time ago. If you look at the code, you can check it: https://github.com/davidgohel/flextable/blob/master/R/printers.R#L275

For all related "Quarto caption" related issues:

Capture d’écran 2023-10-13 à 07 12 18
davidgohel commented 9 months ago

This issue can be closed, it is now working as expected with Quarto 1.4.549

github-actions[bot] commented 3 months ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.