miyuchina / mistletoe

A fast, extensible and spec-compliant Markdown parser in pure Python.
MIT License
841 stars 119 forks source link

Multiple strikethrough tokens on one line don’t parse correctly #86

Closed fqxp closed 3 years ago

fqxp commented 5 years ago

When there are multiple strikethroughs on one line, mistletoe only generates one <del> element as a result:

$ mistletoe                                                                                                             master
mistletoe [version 0.7.2] (interactive)
Type Ctrl-D to complete input, or Ctrl-C to exit.
>>> ~~one~~ ~~two~~
...
<p><del>one~~ ~~two</del></p>

where I would expect two separate <del> elements:

<p><del>one</del>~~ ~~<del>two</del></p>
pbodnar commented 3 years ago

@fqxp, fixed by manually merging your PR #87, thank you!