Currently, you can {include} tables into the HTML site without issues with the syntax:
::::{table} Area Comparisons (written in fancy HTML)
:label: tbl:fancy-table
:::{include} table.html
:::
::::
However, exporting to DOCX doesn't work.
It generates the following errors:
❯ myst build table.md --docx --debug
...
Exporting formats: "docx"
loadFile: loaded /Users/roaldarbol/Filen/Projects/myst-tables/table.md in 44 ms.
📬 Performing exports:
table.md -> _build/exports/table.doc
Loaded site config from /Users/roaldarbol/Filen/Projects/myst-tables/myst.yml
Loaded project config from /Users/roaldarbol/Filen/Projects/myst-tables/myst.yml
loadFile: loaded /Users/roaldarbol/Filen/Projects/myst-tables/table.md in 4.76 ms.
Processing "/Users/roaldarbol/Filen/Projects/myst-tables/table.md"
⛔️ table.md container of kind table contains no valid content besides caption, legend
Valid content types include image, referenced notebook cell, table, code, iframe, subfigure
To suppress this message, add rule: "contianer-children-valid" to "error_rules" in your project config
⚠️ table.md unexpected figure content of type table found in legend node
To suppress this message, add rule: "contianer-children-valid" to "error_rules" in your project config
📖 Built table.md in 39 ms.
Transformed mdast cross references and links for "/Users/roaldarbol/Filen/Projects/myst-tables/table.md" in 6.02 ms
📚 Built 1 page for export (including 0 dependencies) from /Users/roaldarbol/Filen/Projects/myst-tables in 53 ms.
Template found: /Users/roaldarbol/Filen/Projects/myst-tables/_build/templates/docx/myst/default
⛔️ _build/exports/table.doc Node of type "legend" is not supported by docx renderer
To suppress this message, add rule: "docx-renders" to "error_rules" in your project config
📄 Exported DOCX in 199 ms, copying to _build/exports/table.doc
Description
Currently, you can
{include}
tables into the HTML site without issues with the syntax:However, exporting to DOCX doesn't work. It generates the following errors:
Additional notes
A minimal reproducible example:
Save as
table.html
:Save as
tables.md
::::{include} table.html :::
::::