Skip to content

Using meta shortcode in a grid table creates an extra column #10069

@sguyader

Description

@sguyader

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\]"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingshortcodesissues related to shortcodestablesIssues with Tables including the gt integration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions