# Tables in pure Markdown

**URL:** <https://talk.commonmark.org/t/tables-in-pure-markdown/81>\
**Category:** Extensions\
**Created:** [September 3, 2014, 8:48pm UTC](https://talk.commonmark.org/t/tables-in-pure-markdown/81 "2014-09-03T20:48:29Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![mofosyne](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [September 5, 2014, 12:57pm UTC](https://talk.commonmark.org/t/tables-in-pure-markdown/81/29 "2014-09-05T12:57:45Z")

</div>

Super simple semi-csv table ( discussed in [markdown-discuss@six.pairlist.net](mailto:markdown-discuss@six.pairlist.net) ) . Converts only the comma in the header field into " | ".

```
    Year | Make | Model
    1997, Ford, E350
    1999, Chevy, Venture "Extended Edition"
    1999, Chevy, Venture "Extended Edition"
    1996, Jeep, Grand Cherokee

```

Pros: Very easy to convert from csv.  
Con: Very inflexible.

Also if needed you can include `-------` for better legibility

```
    Year | Make | Model
    ----------------------------------------------
    1997, Ford, E350
    1999, Chevy, Venture "Extended Edition"
    1999, Chevy, Venture "Extended Edition"
    1996, Jeep, Grand Cherokee

```

I’m sure you guys have seen this style of tables before

Well if you like pipes instead of commas (make sure you align it right!):

```
    Year | Make | Model
    ----------------------------------------------
    1997 | Ford | E350
    1999 | Chevy | Venture "Extended Edition"
    1999 | Chevy | Venture "Extended Edition"
    1996 | Jeep | Grand Cherokee

```

* * *

Another very interesting concept from Bill Costa.

> In other words push the text up against the pipe for left/right  
> justification, and spaces on either side for centered.

```
| Year|Make | Model |
| -------------------------------------------------- |
| 1997|Ford | E350 |
| 1999|Chevy | Venture "Extended Edition" |
| 1999|Chevy | Venture "Extended Edition" |
| 1996|Jeep | Grand Cherokee |

```

Pros: Can align tables, with minimal effort. Alignment is intuitive  
Cons: Changing alignment of whole rows is painful. (Might as well just use pandoc’s `-:|` style pipe alignment aye? But then again, that might use more mental energy than this, for single shot tables)

---

_[View the full topic](https://talk.commonmark.org/t/tables-in-pure-markdown/81)._
