quarto-web icon indicating copy to clipboard operation
quarto-web copied to clipboard

1.9/ungrid tables

Open cscheid opened this issue 3 months ago • 7 comments

Big PR that removes all grid tables from quarto-web, ahead of our moving towards list-tables as the preferred format for complex tables.

Quarto's visual editor will soon switch to preferring list tables as well, which will reduce the main source of grid tables (without any detriment to user experience).

For users that wish to migrate manually, we have a Lua filter to help with these conversions.

We will document all of this to our users as well, but this PR exists simply to reduce our exposure to this feature.

cscheid avatar Oct 10 '25 19:10 cscheid

The conversion from grid-tables to list-tables is triggering a Pandoc 3.6 reader bug. This is the summary of the situation:

  • Pandoc 3.6 misparses nested lists with code blocks
  • Pandoc 3.7 breaks our Markdown conversion changes for some shortcode situations

We'll have to bump Pandoc to 3.7 (or 3.8?) and accelerate our plan to move to quarto-markdown.

cscheid avatar Oct 10 '25 21:10 cscheid

input.md

* * ```
    Hello
    ```

  * ```
    Oh no
    ```

pandoc 3.6.3

$ pandoc input.md -t native -f markdown
[ BulletList
    [ [ BulletList
          [ [ Para [ Code ( "" , [] , [] ) "Hello" ] ]
          , [ CodeBlock ( "" , [] , [] ) "  Oh no" ]
          ]
      ]
    ]
]

Note the misparsed first code block as a Para ... Code, and too many spaces on the second code block.

Pandoc 3.7.0.2

$ pandoc input.md -t native -f markdown
[ BulletList
    [ [ BulletList
          [ [ CodeBlock ( "" , [] , [] ) "Hello" ]
          , [ CodeBlock ( "" , [] , [] ) "Oh no" ]
          ]
      ]
    ]
]

cscheid avatar Oct 10 '25 21:10 cscheid

The following ugly syntax works in 3.6:

* 
  *
    ```
    Hello
    ```

  * 
    ```
    Oh no
    ```

cscheid avatar Oct 10 '25 21:10 cscheid