Skip to content

Prevent unnecessary escaping of numbers#808

Closed
pwim wants to merge 1 commit into
gettalong:masterfrom
pwim:kramdown-unnecessary-escaping
Closed

Prevent unnecessary escaping of numbers#808
pwim wants to merge 1 commit into
gettalong:masterfrom
pwim:kramdown-unnecessary-escaping

Conversation

@pwim

@pwim pwim commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

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.

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.
@gettalong gettalong self-assigned this Nov 16, 2024
@gettalong

Copy link
Copy Markdown
Owner

Thanks! I removed the \z from the character class but otherwise used your pull request as is.

@gettalong gettalong closed this Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants