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.