Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for grid tables #531

Open
digitalmoksha opened this issue Feb 5, 2025 · 0 comments
Open

Add support for grid tables #531

digitalmoksha opened this issue Feb 5, 2025 · 0 comments

Comments

@digitalmoksha
Copy link
Collaborator

One request/complaint I've heard from folks using markdown is the inability to have block content in cells, particularly lists and multiple paragraphs.

It's possible to do this by mixing an HTML table with markdown, such as

<table>
<tr>
<td>

- built-in wrapper
- bright color

</td>
</tr>
</table>

However many would like to use a markdown syntax rather than directly coding HTML tables. It makes reading the markdown source much more usable.

"Grid tables", as opposed to "pipe tables" available in the GFM spec, allow for a table to be built using markdown and include content blocks in the cells, as well as supporting irregular cells/rows.

An example

+---------------+---------------+--------------------+
| Fruit         | Price         | Advantages         |
+===============+===============+====================+
| Bananas       | $1.34         | - built-in wrapper |
|               |               | - bright color     |
+---------------+---------------+--------------------+
| Oranges       | $2.10         | - cures scurvy     |
|               |               | - tasty            |
+---------------+---------------+--------------------+

Both pandoc and markdig support such a syntax. (I don't know yet if there are any differences between their syntaxes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant