fix cursor behaviour around pills

This commit is contained in:
Matthew Hodgson 2018-05-13 00:40:54 +01:00
parent 9c0c806af4
commit c91dcffe82
2 changed files with 43 additions and 9 deletions

View file

@ -64,11 +64,11 @@ class PlainWithPillsSerializer {
} else if (node.type == 'pill') {
switch (this.pillFormat) {
case 'plain':
return node.text;
return node.data.get('completion');
case 'md':
return `[${ node.text }](${ node.data.get('url') })`;
case 'id':
return node.data.completionId || node.text;
return node.data.get('completionId') || node.data.get('completion');
}
}
else if (node.nodes) {