zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
224 stars 52 forks source link

Zmd generates an ordered list in a case it shouldn't #495

Closed philippemilink closed 10 months ago

philippemilink commented 10 months ago

With the following Markdown code:

These are the first three numbers:
- 1;
- 2;
- 3.

See?

zmd understands the 3. is the third element of an ordered list, and the 3. is shifted in the rendered HTML:

screenshot

arobase-che commented 10 months ago

No, for me this is normal behavior. If you want a number just escape the dot.

- 1;
- 2;
- 3\.

Github with the escaped dot.

Github without the escaped dot.

StaloneLab commented 10 months ago

I agree with @arobase-che , not a Markdown bug, results of the combination of GFM examples 262 ("A list may start or end with an empty list item") and 276 ("A list may be the first block in a list item"). Escaping is the solution to use if the behavior you are referring to is needed. Feel free to reopen if we misunderstood the issue