fix link creation in visual editor
This commit is contained in:
parent
bd767308cd
commit
b293b235bb
@ -73,7 +73,7 @@ export default function markdownToProseMirror({ state }) {
|
|||||||
case 'strong':
|
case 'strong':
|
||||||
return { pmType: type };
|
return { pmType: type };
|
||||||
case 'link':
|
case 'link':
|
||||||
return { pmType: 'strong' };
|
return { pmType: type, attrs: { href: url } };
|
||||||
case 'inlineCode':
|
case 'inlineCode':
|
||||||
return { pmType: 'code' };
|
return { pmType: 'code' };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user