Can not serialize link with defaultMarkdownSerializer

I couldn’t serialize a customised link that work with parseDom in the editor. But i try to get and serialize the view.state.doc it’s throw an error : Cannot read property ‘mixable’ of undefined at progress (to_markdown.js:213) at Fragment.forEach (fragment.js:193) at Node.forEach (node.js:77)

But this is working with the em and strong properties.

You generally can’t use a new schema with the predefined markdown parser or serializer. In your case, it sounds like you used a different name for your link mark that the serializer doesn’t know about.