ProseMirror / prosemirror-markdown

ProseMirror Markdown integration
https://prosemirror.net
MIT License
345 stars 81 forks source link

Fix generated Markdown of marks with asymmetric open and close syntax #28

Closed DouweM closed 6 years ago

DouweM commented 6 years ago

The generated Markdown would be [close]text[open] instead of [open]text[close]!

adrianheine commented 6 years ago

Could you add a test case?

DouweM commented 6 years ago

@adrianheine Gladly, but I'm not sure what would be the most appropriate place to add it since the schema doesn't have any marks with asymmetric open and close syntax 😬

adrianheine commented 6 years ago

You're right, this wouldn't fit in the existing test files. I'll merge this as it is and if you're willing to do the work to add a separate test with a simple custom schema, just open another PR :)