upd: collapse mentions if multiple are followed in a row
This commit is contained in:
parent
13e8269993
commit
bd470596cc
2 changed files with 50 additions and 2 deletions
|
|
@ -82,7 +82,13 @@ export default function(props: MfmProps) {
|
|||
res.push(t);
|
||||
}
|
||||
res.shift();
|
||||
return res;
|
||||
|
||||
// Don't wrap whitespaces in a span
|
||||
if (text === ' ') {
|
||||
return res;
|
||||
}
|
||||
|
||||
return h('span', res);
|
||||
} else {
|
||||
return [text.replace(/\n/g, ' ')];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue