I’m having a hard time creating some custom input rules to match and replace the usual Markdown marks (em, strong, etc.) Here is the one I have so far:
const emRule = wrappingInputRule(/(?:^|[^\*_])(?:\*|_)([^\*_]+)(?:\*|_)$/, schema.marks.em)
It should match any characters (except asterisk and underscore) preceded and followed by one (not two) asterisk or underscore. But those characters aren’t replaced although I use the schema provided by prosemirror-markdown
Any idea? Many thanks in advance!