You can clone the repo and then point your browser to the cloned index.html
.
Copy a table in Excel (or other spreadsheet programs) and paste it as a Markdown table.
You can optionally specify column alignment information by prepending one of the following to the column heading names in Excel:
- ^c - center alignment
- ^r - right alignment
- ^l - left alignment (the default)
For example: enter the following csv in Excel to right-align the second column and center-align the third column:
animal,^rweight,^ccolor
dog,30lb,tan
dog,85lb,black
cat,18lb,calico
This will produce the following markdown table when pasted:
| animal | weight | color |
|--------|-------:|:------:|
| dog | 30lb | tan |
| dog | 85lb | black |
| cat | 18lb | calico |
and the output table with thus look like
animal | weight | color |
---|---|---|
dog | 30lb | tan |
dog | 85lb | black |
cat | 18lb | calico |
Another simple markup language is reStructuredText. The index.html
now contains three extra text areas for the three table variants that exist in reST.
reST has three options for creating tables.
- List tables. These are ideal for tables where you want to fold the text.
- Simple tables. This is a bit of a misnomer: these are most like markdown tables
- Multicell or grid tables. These are similar to markdown as well.
Note that reStructuredText does not support the alignment of cells. Hence the alignment is ignored.
You can find more information here.
If you have mocha installed you can run the tests in the test directory.
- @jonmagic
- @thisdavej
- @JohnTube
- @mhlavacek