php-markdown icon indicating copy to clipboard operation
php-markdown copied to clipboard

Strike markdown

Open silverqx opened this issue 8 years ago • 11 comments

It's possible to implement strike?

silverqx avatar Apr 18 '17 11:04 silverqx

The syntax could be -striketrough-. 👍

ArthaTi avatar Aug 03 '17 12:08 ArthaTi

As an info, Github uses ~strike~

ljacqu avatar Aug 05 '17 11:08 ljacqu

I think strike should be ~ and not -

silverqx avatar Aug 05 '17 15:08 silverqx

GFM is ~strike~. It's implemented in many, many commonly used platforms on the js side. It would be super nice if we could follow suit in PHP.

jackmcdade avatar Oct 29 '18 20:10 jackmcdade

Depending on the implementation, ~ can mean <sub>, <del>, or <u>. Using a double-tilde is more universal it seems. If this is going to get implemented, I think we should go for a double tilde: ~~strike~~.

For reference: ~strike~ vs ~~strike~~.

Also, using a dash doesn't really work as they’re pretty common in text and could easily generate false positives.

michelf avatar Nov 04 '18 12:11 michelf

I think ~~strike~~ syntax is ok as well.

silverqx avatar Nov 04 '18 17:11 silverqx

Hi Michel, if you consider adding strikethrough I can send you a pull request for it.

We have a working implementation for ~~strikethrough~~ at yellow-markdown.

markseuffert avatar Apr 19 '19 09:04 markseuffert

Go for it!

jackmcdade avatar Apr 19 '19 12:04 jackmcdade

Was this ever implemented?

I'm seeing ~underline~ ~~strike~~ and


Commonly implemented.

JonSeale avatar Oct 14 '20 20:10 JonSeale

Clearly, GitHub doesn't support the combination, as it's interpreted as a code fence.

JonSeale avatar Oct 14 '20 20:10 JonSeale