sstur / draft-js-export-markdown

DraftJS: Export ContentState to Markdown
http://npm.im/draft-js-export-markdown
55 stars 23 forks source link

Escape special characters #16

Open gingur opened 8 years ago

gingur commented 8 years ago

Characters such as # ~ - [ ] ( ) > should be escaped like how characters * _ are.

Use case:

# heading
~~strike~~
- list
[title](url)
> blockquote

You'll notice the dehydrated state is not properly escaping these MD characters and when rehydrated from MD not all exported content like blockquotes are recreated.

gingur commented 8 years ago

import issue mentioned at https://github.com/sstur/draft-js-import-markdown/issues/1 , focus of this report is for properly escaping mardown related special characters.

colin-jack commented 7 years ago

I was wondering if there had been any progress on resolving this issue?