statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

FR: Markdown strikethrough #1249

Open rrelmy opened 7 years ago

rrelmy commented 7 years ago

Expected behaviour

Using ~~ around text should strikethrough the text with del or <s> HTML-tags

The preview in the backend works as expected, but not the frontend | markdown modifier

Actual behaviour

The ~~ are included in the parsed markdown output

Output

~~Some text~~

Instead of

<del>Some text</del>

Steps to reproduce

  1. Insert ~~Some text~~ into a markdown field
  2. Show preview of the markdown (works)
  3. Output the content in the frontend with the markdown modifier {{ content | markdown }}
edalzell commented 7 years ago

The parser they use doesn't plan to support it @rrelmy: https://github.com/michelf/php-markdown/pull/212

jasonvarga commented 7 years ago

I'm changing this to a feature request because of the parser we're using.