inject a space before the closing ) so the markdown links still work.

This commit is contained in:
fiatjaf 2023-01-27 20:21:20 -03:00
parent 965cec5aba
commit baeed918d0
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -229,7 +229,7 @@ export default function Text({ content, tags, users }: TextProps) {
node.type === 'definition')
) {
node.type = 'text';
node.value = content.slice(node.position.start.offset, node.position.end.offset);
node.value = content.slice(node.position.start.offset, node.position.end.offset).replace(/\)$/, ' )');
return SKIP;
}
})