markedjs / marked

A markdown parser and compiler. Built for speed.
https://marked.js.org
Other
33.15k stars 3.39k forks source link

Incorrect parsing of emphasis around numbers? #1297

Closed jackschaedler closed 6 years ago

jackschaedler commented 6 years ago

Description Emphasis (asterisks) around two different numbers on a single line seems to produce incorrect HTML.

To Reproduce

  1. Marked Demo
  2. CommonMark Demo

Expected behavior Expect to see the commonmark output.

jackschaedler commented 6 years ago

Thanks for such a wonderful library! Feel free to disregard if this is intended behavior, but the inconsistency with the CommonMark demo made me think it was worth it to create an issue.

UziTech commented 6 years ago

This is definitely a bug. Thanks for reporting this @jackschaedler.

If you would like to submit a PR that fixes this, you could get the defibrillator badge and really help us out.

jackschaedler commented 6 years ago

I can maybe take a look next week; will keep you posted!