Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Wiki markup gets ignored on tables sometimes #24

Open
jacques opened this issue Mar 4, 2014 · 3 comments
Open

Wiki markup gets ignored on tables sometimes #24

jacques opened this issue Mar 4, 2014 · 3 comments

Comments

@jacques
Copy link

jacques commented Mar 4, 2014

https://github.com/kaizengarden/docs.kaizengarden.co/blob/master/index.restdown#L154-L157 is an example of a table that does not render correctly. See docs.kaizengarden.co in your webbrowser.

@trentm
Copy link
Contributor

trentm commented Mar 7, 2014

@jacques Hrm, works for me. E.g.:

$ cat ~/tmp/r.md
# Ruby

These versions have been deprecated it is advisable to make sure your code runs on Ruby 2.0.0 or 2.1.0.

## End-of-Life dates for Ruby Versions

|| **Ruby Version** || **Announced** || **Maintenance** || **End of Life** ||
|| **1.8.7** || 2011-10-16 || 2012-06 || 2013-06 ||
|| **1.9.3** || 2014-01-10 || 2014-02-23 || 2015-02-23 ||
|| **Ruby Enterprise Edition** || 2012-02-21 || N/A || N/A ||

## Ruby 1.8.7

Ruby 1.8.7 is no longer supported by the Ruby community since July 2013. It is highly advised that you upgrade your applications to run using
Ruby 1.9.3.
[21:03:45 trentm@grape:~/tm/restdown (master)]
$ externals/lib/markdown2.py ~/tmp/r.md -x wiki-tables
<h1>Ruby</h1>

<p>These versions have been deprecated it is advisable to make sure your code runs on Ruby 2.0.0 or 2.1.0.</p>

<h2>End-of-Life dates for Ruby Versions</h2>

<table>
<tbody>
<tr><td><strong>Ruby Version</strong></td><td><strong>Announced</strong></td><td><strong>Maintenance</strong></td><td><strong>End of Life</strong></td></tr>
<tr><td><strong>1.8.7</strong></td><td>2011-10-16</td><td>2012-06</td><td>2013-06</td></tr>
<tr><td><strong>1.9.3</strong></td><td>2014-01-10</td><td>2014-02-23</td><td>2015-02-23</td></tr>
<tr><td><strong>Ruby Enterprise Edition</strong></td><td>2012-02-21</td><td>N/A</td><td>N/A</td></tr>
</tbody>
</table>

<h2>Ruby 1.8.7</h2>

<p>Ruby 1.8.7 is no longer supported by the Ruby community since July 2013. It is highly advised that you upgrade your applications to run using
Ruby 1.9.3.</p>
[21:03:50 trentm@grape:~/tm/restdown (master)]
$ externals/lib/markdown2.py --version
markdown2 2.0.1

@trentm
Copy link
Contributor

trentm commented Mar 7, 2014

Yah, it does mess up when I process the whole index.restdown doc you pointed to:

<table>
<tbody>
<tr><td><strong>Ruby Version</strong></td><td><strong>Announced</strong></td><td><strong>Maintenance</strong></td><td><strong>End of Life</strong></td></tr>
</tbody>
</table>

<p>|| <strong>1.8.7</strong>                   || 2011-10-16    || 2012-06         || 2013-06         ||
|| <strong>1.9.3</strong>                   || 2014-01-10    || 2014-02-23      || 2015-02-23      ||
|| <strong>Ruby Enterprise Edition</strong> || 2012-02-21    || N/A             || N/A             ||</p>

<h2>Ruby 1.8.7</h2>

<p>Ruby 1.8.7 is no longer supported by the Ruby community since July 2013.  It is highly advised that you upgrade your applications to run using
Ruby 1.9.3.</p>

@trentm
Copy link
Contributor

trentm commented Mar 7, 2014

Found it. There is a trailing space on this line: https://github.com/kaizengarden/docs.kaizengarden.co/blob/master/index.restdown#L155

That breaks the wiki-table processing right now. Will open a ticket on markdown2 for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants