gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 271 forks source link

Prevent unnecessary escaping of numbers #808

Open pwim opened 2 months ago

pwim commented 2 months ago

When a line starts with a number that ends with a period, e.g. 1984., it needs to be escaped, as otherwise markdown interprets it as a list.

However, if a line begins with a number that includes a period in it, e.g. 1984.5, it does not need to be escaped, as it won't be interpreted as a list.