Redcarpet Syntax

Tables

To making a table:

  • The first row is always the header
  • Dashes - separate the header from the data
  • Colons : align the columns (and are optional)

The first example shows all the symbols lined up neatly. This is only for readability. Symbols don't have to line up. The outer pipes | are not required, either.

Aligned

| Column 1         | Column 2              | Column 3  |
| ---------------- |:---------------------:| ---------:|
| col 2 is         | centered              |     $1600 |
| col 3 is         | right-aligned         |       $12 |
| Row stripes      | improve readability   |        $1 |
| Responsiveness   | already built-in      |      FREE |
Column 1 Column 2 Column 3
col 2 is centered $1600
col 3 is right-aligned $12
Row stripes improve readability $1
Responsiveness already built-in FREE

Not-So Aligned

The Not-So | Pretty | Version
--- | --- | ---
Still | looks | snazzy
Tall | Grande | Venti
Titan | Europa | Enceladus
The Not-So Pretty Version
Still looks snazzy
Tall Grande Venti
Titan Europa Enceladus