quarto-dev / quarto-dev/quarto-cli
Using meta shortcode in a grid table creates an extra column
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
When I define the date-modified metadata in yaml header of quarto document, and use the {{< meta date-modified >}} in a grid table, an extra column is created to the right. It doesn't happen in regular markdown tables. It happens in several output formats I've tried (odt, docx, html, pdf).
Code to reproduce:
---
title: "Untitled"
date-modified: today
format: odt
---
This grid table with the date in plain text shows 2 columns as defined:
+-------------------+----------------------------+
| **Date created** | 2021-07-12 |
+-------------------+----------------------------+
| **Date modified** | 2024-06-19 |
+-------------------+----------------------------+
: {tbl-colwidths="\[50,50\]"}
This grid table using the date-modified shortcode shows 3 columns instead of 2:
+-------------------+----------------------------+
| **Date created** | 2021-07-12 |
+-------------------+----------------------------+
| **Date modified** | {{< meta date-modified >}} |
+-------------------+----------------------------+
: {tbl-colwidths="\[50,50\]"}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Quarto document and compare the grid-table case using the meta shortcode with the plain-text and regular Markdown table cases. Check the generated ODT, DOCX, HTML, and PDF outputs; the work is done when the shortcode renders inside the existing cell without creating a third column.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, yaml
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100