erusev / parsedown

Better Markdown Parser in PHP
https://parsedown.org
MIT License
14.74k stars 1.12k forks source link

Change <del> to <s> #695

Closed BenjaminHoegh closed 5 years ago

BenjaminHoegh commented 5 years ago

I'm not sure you use the right option for strikethrough but this can off cause be personal but try to read this article

  • The \ element represents a removal from the document.
  • The \ represents contents that are no longer accurate or no longer relevant.

That is to say that they actually represent different things semantically. Specifically \ would be used if you had an existing document and wanted to indicate text that was in the document, but has been removed. This would be different than text in a document that is no longer accurate, but that has not been removed (you could use \ for that).

aidantwoods commented 5 years ago

Reasoning for the current behaviour is to match the GFM spec: https://github.github.com/gfm/#strikethrough-extension-