soasme / nim-markdown

A Beautiful Markdown Parser in the Nim World.

Home Page:https://www.soasme.com/nim-markdown/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table are not processed correctly

chrisecker opened this issue · comments

Markdown tables are not processed correctly. A table such as

| Month    | Savings |
|----------|---------|
| January  | $250    |
| February | $80     |
| March    | $420    |

results in the following html code

<p>| Month    | Savings |
|----------|---------|
| January  | $250    |
| February | $80     |
| March    | $420    |</p>

Sorry, I should read the docs before complaining. The default markdown flavour is common mark and does not have any tables. To have table one needs to switch to GFM-Style:

markdown(doc, config=initGfmConfig())

This works nicely