Skip to content

feature: Support for Pandoc grid tables (or just multiline tables) #664

@josswright

Description

@josswright

Is your feature request related to a problem? Please describe.

🔖 Feature description:

I've used render-markdown.nvim (occasionally alternating with markview.nvim) in combination with mkdnflow.nvim for inline markdown preview.

Something that I find very helpful is mkdnflow's support for Pandoc's grid_tables markdown extension: https://pandoc.org/demo/example33/8.9-tables.html

Is there any possibility of that format being supported in render-markdown.nvim? I frequently find myself with tables that are far too wide for my terminal window.

I can understand why automatic wrapping of table cells would be tricky, but might it be possible to support manually wrapped tables in the grid_tables format?

If that isn't possible, given that grid_tables has some extra complexity beyond just multi-line cells, might it be possible to support just the multiline_tables extension? (Or just the multi-line parts of grid_tables?)

Thank you!

📂 Possible solutions:

Support manually-specified multi-line table rendering, using either Pandoc's grid_tables or multiline_tables extension, as usable in mkdnflow.nvim.

🧾 Feature reference:

Describe the solution you'd like

Support manually-specified multi-line table rendering, using either Pandoc's grid_tables or multiline_tables extension, as usable in mkdnflow.nvim.

Describe alternatives you've considered

I suppose a more informal way of breaking lines for cells using, say, \ to mark a cell that continues on the next line, would also be a possibility. Pandoc's multiline table format is a little different.

Obviously, the problem is that an informal approach just for previewing here would make the markdown non-standard. Using the grid_tables approach, even if only the multi-line elements are supported, at least keeps it within a fairly well-known standard.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions