Hi, i’m using a custom schema and have added a custom mark to implement underline in markdown as it is a necessary requirement for this particular application. The mark is:
underline: { open: '!', close: '!', mixable: true, expelEnclosingWhitespace: true, escape: true }
I’ve also implemented a MarkdownIt
plugin to help in parsing and tokenising the new mark which works fine.
The issue I’m having is that I need the use of !
in any inputted text to be escaped similar to *
so it doesn’t trigger the new underline mark. I jumped to the conclusion that the escape
prop in the MarkSerializerConfig
would allow this to happen but quickly figured out that’s currently not the case. Does this escape prop work with custom marks?
And Is there a way to go about this?
Thanks