Closed behrang closed 11 years ago
Markdown parsing is done via Marked - https://github.com/chjj/marked/
Please report the issue there. I'll close it for now but please reopen if you can confirm the issue is not present upstream.
I installed marked@0.2.7 and tested it using a nodejs script like this:
var marked = require('marked');
console.log(marked(
" Header 1 | Header 2\n" +
" -------- | --------\n" +
" Cell 1 | Cell 2\n" +
" Cell 3 | Cell 4"
));
This prints an HTML table correctly. So I think the problem is somewhere in strapdownjs.
Thanks
thanks! can you please replace vendor/marked.min.js
with the latest version and see if that fixes the problem for Strapdown?
I used the lib/marked.js version (not minified) and it worked! It converted the above input into a table.
fixed in 509f99f9c00e6b40f208a39e2a2c980331642fe5
let me know if that does the trick, thanks
It's fixed. Thanks
Marked documentation, states that it supports GFM tables. But when I place some table markdown like this:
it is not rendered as it is rendered on GitHub:
It just makes the first row an H2 tag.