Tables

Simple tables

  • First column cells cannot be multiple lines

  • Must contain more than 1 row

name

age

Alice

42

Bob

99

=======  =====
name     age
=======  =====
Alice    42
Bob      99
=======  =====

Grid Table Syntax

+-------+-----+
| name  | age |
+=======+=====+
| Alice | 42  |
+-------+-----+
| Bob   | 99  |
+-------+-----+

Result:

name

age

Alice

42

Bob

99

CSV Table

https://docutils.sourceforge.io/docs/ref/rst/directives.html#id4

Frozen Delights!

Treat

Quantity

Description

Albatross

2.99

On a stick!

Crunchy Frog

1.49

If we took the bones out, it wouldn’t be crunchy, now would it?

Gannet Ripple

1.99

On a stick!

Sublime shortcuts for OSX

Using the Sublime Text rst-completion plugin:

Grid table rst-completion

Command-Shift-t, Enter

https://github.com/mgaitan/sublime-rst-completion#grid-table

hello world foo use 2+ spaces as a delimiter bar then do cmd-shift-t, enter

hello

world

foo

use 2+ spaces as a delimiter

bar

then do cmd-shift-t, enter