Skip to main content

Literate and Documenter HTML tables

Literate.jl and Documenter.jl can preserve a table as raw HTML MIME output. The HTML adapter keeps the original markup and creates a canonical Markdown table before normalisation.

Both ordinary raw HTML and Documenter/Pandoc raw blocks are recognised:

```@raw html
<table>...</table>
```

```{=html}
<table>...</table>
```
Documenter HTML MIME weather table.
Place Observed event
Date Temperature (°C)
Oodnadatta Airport 1960-01-02 50.7
Mardie 2022-01-13 50.5

The row and column spans are expanded deterministically in the canonical model and recorded as table.span-expanded diagnostics. Nested tables are not silently flattened.

A minimal Literate/Documenter project using this route is included under docs/examples/literate_documenter/.

After Quarto produces retained Markdown, the public tracecite-docs prepare command can create the optional inspection-site copy. The automatic tracecite-docs build docs command coordinates that export for this repository; external projects can invoke tracecite-docs prepare directly after their own Quarto render.