Skip to content

callout with table produces problem in docx #6357

@vtraag

Description

@vtraag

Bug description

When a callout contains a table, the generated docx contains "unreadable content" according to Microsoft Word (Office 365).

afbeelding

Steps to reproduce

  1. Create a file test.qmd containing the following Quarto
::: {.callout-note}

| Column A | Column B |
|----------|----------|
|        A |        B |

:::

Produces a problem when converted to `.docx`
  1. Generate docx using quarto render test.qmd --to docx
  2. Open file in Microsoft Word.

Expected behavior

The generated docx should not contain "unreadable content".

Actual behavior

The generated docx contains "unreadable content".

Your environment

Run from the command line from Ubuntu (22.04) and Windows both reproduce this problem. Note that the error in the generated .docx is reported by Microsoft Word, not by Libre Office.

The problem appears with quarto version1.3.433. Double checked with latest pre-release 1.4.268 and the problem persists.

Quarto check output

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.433
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.9 (Conda)
      Path: /home/vtraag/mambaforge/envs/science/bin/python
      Jupyter: 4.11.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.3
      Path: /opt/R/4.2.3/lib/R
      LibPaths:
        - /home/vtraag/R/x86_64-pc-linux-gnu-library/4.2
        - /opt/R/4.2.3/lib/R/library
      knitr: 1.43
      rmarkdown: 2.23

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcalloutsIssues with Callout Blocks.docxIssues with the docx formattriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions