Extending MarkdownParser

Hi. So I extended the basic schema to include an “underline” mark, whose toDOM and parseDOM return tags. My task right now is parsing Markdown into a prosemirror document node, and so I created a custom MarkdownParser

new Markdown.MarkdownParser(schema, markdownit(“commonmark”, {html: false}), { …, underline: {mark: “underline”} });

This doesn’t parse, however, the tags to be an underline mark, so the editor is still showing the tags. I’m just wondering how to set this up properly? Thanks.

You don’t seem to be including any markdownit extension, so it looks like no underline syntax is going to be parsed at that level.

1 Like