fix link creation in visual editor

This commit is contained in:
Shawn Erquhart 2017-06-13 11:49:09 -04:00
parent bd767308cd
commit b293b235bb

View File

@ -73,7 +73,7 @@ export default function markdownToProseMirror({ state }) {
case 'strong':
return { pmType: type };
case 'link':
return { pmType: 'strong' };
return { pmType: type, attrs: { href: url } };
case 'inlineCode':
return { pmType: 'code' };
}