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

Strikethrough in list doesn't work

metagn opened this issue · comments

import markdown

echo markdown("* ~~da~~")

Output:

<ul>
<li>~~da~~</li>
</ul>
commented

Hi @hlaaftana ,

Thanks for reporting. This is an expected behavior.

By default, nim-markdown supports CommonMark spec, which doesn't support strikethrough. As of now, nim-markdown is still under development on expanding all features defined in GFM.

For now, you can open experimental GFM features by specifying a config:

import markdown

echo markdown("* ~~da~~", initGfmConfig())

Output:

<ul>
<li><del>da</del></li>
</ul>

See document.