Skip to contents

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 and Word (docx) output formats.

After installation, add the filter to your document or project YAML:

filters:
  - flextable-qmd

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:

filters:
  - flextable-qmd
  - at: post-render
    path: _extensions/flextable-qmd/unwrap-float.lua

Usage

use_flextable_qmd(path = ".", quiet = FALSE)

Arguments

path

Path to the Quarto project root. Defaults to the current working directory.

quiet

If TRUE, suppress informational messages.

Value

The path to the installed extension (invisibly).

See also

as_qmd() for creating Quarto markdown chunks, knit_print.flextable() for rendering options in knitr documents.

Examples

if (FALSE) { # \dontrun{
use_flextable_qmd()
} # }