Skip to content

Missing (Quarto) shortcode when used as first item in table #14

@MBe-iUS

Description

@MBe-iUS

Hi,

this is a mixed bug report, since I'm using Quarto as frontend to Pandoc, however this extension is described as the solution to some problems with grid tables (see) in Quarto.

So, when having a Quarto file with list-table extension and a shortcode providing extension like fancy-text:

---
title: Untitled
format:
  pdf: default
filters:
  - pandoc-ext/list-table
  - quarto-ext/fancy-text
author: me
date: last-modified
---

- {{< latex >}} Fancy Latex is there

:::{.list-table}
* - {{< latex >}} Fancy Latex missing
* - From {{< latex >}} to {{< bibtex >}}
:::

I get the first shortcode content missing in my table.

The reason is that a Span can be also used to tweak the style of the table and while handling this it gets moved to the attributes of the table.

I was able to fix it for me against the current version around here:

-- At the time of writing this Pandoc does not support attributes

but I don't know if this is generally valid, so please check:

128a129,132
>                 if contents[1].content[1].attr.attributes.__quarto_custom ~= nil and
>                     contents[1].content[1].attr.attributes.__quarto_custom then
>                         goto continue
>                 end
136a141
>                 ::continue::

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions