Skip to content

Strikethrough does not work midword like on GitHub #532

@not-my-profile

Description

@not-my-profile

GitHub renders ~~foo~~bar as foobar and foo~~bar~~ as foobar.

pulldown-cmark however doesn't recognize both strikethroughs:

$ echo '~~foo~~bar' | cargo run  -- -S
<p>~~foo~~bar</p>
$ echo 'foo~~bar~~' | cargo run  -- -S
<p>foo~~bar~~</p>

Unfortunately the GFM spec doesn't say much about strikethroughs (see github/cmark-gfm#74), but we could of course still be consistent with the established GitHub rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions