iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.84k stars 284 forks source link

reStructuredText Compatible Tables [Enhancement] #514

Open Cpreet opened 2 years ago

Cpreet commented 2 years ago

Describe the bug Was looking to add clear and compatible tables in output of Markdown-preview. Simple rst Tables are the exact match.

Input

+-------+----------+------+
| Table Headings   | Here |
+-------+----------+------+
| Sub   | Headings | Too  |
+=======+==========+======+
| cell  | column spanning |
+ spans +----------+------+
| rows  | normal   | cell |
+-------+----------+------+
| multi | * cells can be  |
| line  | * formatted     |
| cells | * paragraphs    |
| too   |                 |
+-------+-----------------+

Output Visit link

kbilleter commented 1 year ago

Nice idea. Your terminology is a little confusing as "simple tables" in ReSt refers to tables without vertical bars and these are "grid tables" -- even if simple!

Grid tables are also compatible with Pandoc which is a bonus.