evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

are tables supported #141

Open sanderhouttekier opened 10 years ago

sanderhouttekier commented 10 years ago

I've tried different types of tables that other markdown implementations support, but i'm not recieving any real table markup.

tried inserting html itself, or using the pipe characters

the only notion of tables i found was issue #66 which handles tables in 1 of the dialects

lunarcloud commented 10 years ago

Yes, they are in your tests, but don't show up in parsed documents.

gaboom commented 9 years ago

I think tables are not parsed, it does not work in the current release. It seems a bug to me.

markdown@0.5.0 node_modules\markdown └── nopt@2.1.2 (abbrev@1.0.5)

a v c 2 d
d d d d d
d d s d d
d d d d s
| a | v | c | 2 | d |
|---|---|---|---|---|
| d | d | d | d | d |
| d | d | s | d | d |
| d | d | d | d | s |

is parsed as a paragraph, no sign of table support:

  [
    "para",
    "| a | v | c | 2 | d |\n|---|---|---|---|---|\n| d | d | d | d | d |\n| d | d | s | d | d |\n| d | d | d | d | s |"
  ]