Remove unnecessary restrictions on HTML handling (#36548)
This commit is contained in:
1 parent
c40648f7b3
commit
9f7075a0ce
2 files changed
+2
-2
No files matched your search
@@ -38,7 +38,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
} else if ((text.startsWith('@') || prevText?.endsWith('@')) && mention) {
|
||||
} else if (mention) {
|
||||
// Handle mentions
|
||||
return (
|
||||
<Link
|
||||
|
||||
@@ -219,7 +219,7 @@ class StatusContent extends PureComponent {
|
||||
{children}
|
||||
</HandledLink>
|
||||
);
|
||||
} else if (element instanceof HTMLParagraphElement && element.classList.contains('quote-inline')) {
|
||||
} else if (element.classList.contains('quote-inline')) {
|
||||
return null;
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in new issue
Block a user