Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Wiki's table and header

What's the easy way to type wiki document in Github with header and table? Here is what annoying to me:

  1. If I use Markdown, I have to use <table>.

  2. If I use Textile, there is no # or ## for header

I like the |col1|col2| syntax though.

What people use for this scenario? Without lots of typing / cut and paste (for <table> as example).

like image 568
HP. Avatar asked Jan 10 '13 22:01

HP.


People also ask

How do I add a table to a readme in GitHub?

You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe | .

How do I markdown a table of contents?

Press CTRL + SHIFT + P. Select Markdown: Create Table of Contents.


2 Answers

As can be seen, it is surely possible.

dog | bird | cat
----|------|----
foo | foo  | foo
bar | bar  | bar
baz | baz  | baz

(this is using GitHub's "Markdown" Edit mode)

like image 151
4 revs, 2 users 89% Avatar answered Sep 30 '22 15:09

4 revs, 2 users 89%


If you want to force a particular alignment of the cells, you can do the following, where I have left-justified the first column, centered the middle column, and right-justified the last column:

dog | bird | cat
:-- | :--: | --:
foo | foo  | foo
bar | bar  | bar
baz | baz  | baz
like image 37
Dean Wampler Avatar answered Sep 30 '22 15:09

Dean Wampler