Copies the flextable-qmd Quarto extension (bundled with
flextable) into the _extensions/ directory of a
Quarto project. The extension provides Lua filters
that resolve Quarto markdown content produced by
as_qmd() inside flextable cells for HTML, PDF,
Typst and Word (docx) output formats.
After installation, add the filter to your document or project YAML:
filters:
- flextable-qmd
This single filter is all that is required for HTML,
PDF and Typst (format: typst) output.
For Word (docx) output with labelled flextable chunks
(e.g. #| label: tbl-xxx), add the post-render filter
to remove the wrapper table Quarto creates around the
flextable (this extra filter is not needed for Typst,
where the table is embedded directly in the figure):
filters:
- flextable-qmd
- at: post-render
path: _extensions/flextable-qmd/unwrap-float.lua
use_flextable_qmd(path = ".", quiet = FALSE)The path to the installed extension (invisibly).
Path to the Quarto project root. Defaults to the current working directory.
If TRUE, suppress informational messages.
as_qmd() for creating Quarto markdown chunks,
knit_print.flextable() for rendering options in knitr documents.
Other flextable configuration:
add_latex_dep(),
use_df_printer(),
use_model_printer()
if (FALSE) {
use_flextable_qmd()
}
Run the code above in your browser using DataLab