What's the easy way to type wiki document in Github with header and table? Here is what annoying to me:
If I use Markdown, I have to use <table>
.
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).
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 | .
Press CTRL + SHIFT + P. Select Markdown: Create Table of Contents.
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)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With