syntax-tree / mdast-util-to-markdown

mdast utility to serialize markdown
http://unifiedjs.com
MIT License
100 stars 20 forks source link

Please support delete (strike-through) #2

Closed bartv2 closed 4 years ago

bartv2 commented 4 years ago

Subject of the feature

I noticed that https://github.com/syntax-tree/mdast#delete is missing

Expected behavior

Output like strong but with ~

Alternatives

I considered writing my own handler, but it is such a basic thing, and it should just be supported by the package.

Thanks for the package BTW, released/created just when i was looking for something like this.

ChristianMurphy commented 4 years ago

This only supports commonmark out of the box, strike through is a GFM syntax feature. Which can be added through a plugin https://github.com/syntax-tree/mdast-util-gfm-strikethrough