Strikethrough in list doesn't work
metagn opened this issue · comments
import markdown
echo markdown("* ~~da~~")
Output:
<ul>
<li>~~da~~</li>
</ul>
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.