2
0

Remove unnecessary restrictions on HTML handling (#36548)

This commit is contained in:
Claire
2025-10-22 15:55:41 +02:00
committed by GitHub
parent c40648f7b3
commit 9f7075a0ce
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
{children} {children}
</Link> </Link>
); );
} else if ((text.startsWith('@') || prevText?.endsWith('@')) && mention) { } else if (mention) {
// Handle mentions // Handle mentions
return ( return (
<Link <Link

View File

@@ -219,7 +219,7 @@ class StatusContent extends PureComponent {
{children} {children}
</HandledLink> </HandledLink>
); );
} else if (element instanceof HTMLParagraphElement && element.classList.contains('quote-inline')) { } else if (element.classList.contains('quote-inline')) {
return null; return null;
} }
return undefined; return undefined;