Open NomNuggetNom opened 9 years ago
There is some support for tables. In the tests,
My reading of this is that you have to use the non-default "Maruku" dialect for it to work: https://github.com/evilstreak/markdown-js/blob/master/test/features.t.js#L73-L74
and after some experimentation, I was able to get it to work:
z = "Entity | Result\n------------|----------\n`©` | ©\n`£` | £\n`a b` | a b\n`λ` | λ\n`—` | &mdash";
markdown.toHTML(z, 'Maruku');
results in
<table><thead><tr><th>Entity</th><th>Result</th></tr></thead><tbody><tr><td><code>&copy;</code></td><td>&copy;</td></tr><tr><td><code>&pound;</code></td><td>&pound;</td></tr><tr><td><code>a&nbsp;b</code></td><td>a&nbsp;b</td></tr><tr><td><code>&lambda;</code></td><td>&lambda;</td></tr><tr><td><code>&mdash;</code></td><td>&mdash</td></tr></tbody></table>
It'd be really cool if some support for tables could be added, like GitHub's Markdown supports.