React-markdown: [bug] Strike not working properly on v4.3.1

Created on 7 May 2020  路  3Comments  路  Source: remarkjs/react-markdown

Hey!

I am using your editor, and after some tests I faced this behavior. When I try to parse an strikethrough format it won't render if the string has blank spaces close to tilde (~).

~~ teste ~~
~~teste ~~
~~ teste~~

Results of these tests:
image

It's also reproduced on the demo here: https://rexxars.github.io/react-markdown/

馃毇 statuwontfix

Most helpful comment

I am happy to adhere to the spec. Thanks for linking it @ChristianMurphy, this is helpful.

All 3 comments

@guilhermecastro-hotmart this is how strike through works.
The GFM spec defines strike through as an emphasis type https://github.github.com/gfm/#strikethrough-extension-

Example from emphasis explaining this behavior: https://github.github.com/gfm/#example-361

@bdougie same goes for wrapping text in single ~.
From the GFM spec:

Strikethrough text is [...] wrapped in two tildes

https://github.github.com/gfm/#strikethrough-extension-

I am happy to adhere to the spec. Thanks for linking it @ChristianMurphy, this is helpful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dbuchet picture dbuchet  路  3Comments

ScarellaDev picture ScarellaDev  路  3Comments

wqh17101 picture wqh17101  路  3Comments

hiteshpatwari picture hiteshpatwari  路  3Comments

garrilla picture garrilla  路  4Comments