-
Notifications
You must be signed in to change notification settings - Fork 435
wiki tables
Nicholas Serra edited this page Jan 15, 2019
·
2 revisions
The wiki-tables
extra provides support for Google Code wiki-style
tables.
For example, this text:
|| *Year* || *Temperature (low)* || *Temperature (high)* ||
|| 1900 || -10 || 25 ||
|| 1910 || -15 || 30 ||
|| 1920 || -10 || 32 ||
Becomes this:
<table>
<tbody>
<tr><td><em>Year</em></td><td><em>Temperature (low)</em></td><td><em>Temperature (high)</em></td></tr>
<tr><td>1900</td><td>-10</td><td>25</td></tr>
<tr><td>1910</td><td>-15</td><td>30</td></tr>
<tr><td>1920</td><td>-10</td><td>32</td></tr>
</tbody>
</table>
$ python markdown2.py -x wiki-tables FOO.txt
>>> markdown2.markdown(text, extras=["wiki-tables"])
This was implemented in issue 66. See a (short) discussion of alternative Markdown table syntaxes (including those from Python-Markdown and PHP Markdown).
(Return to Extras page.)