Hashtag fixes (#36625)

This commit is contained in:
Claire authored and GitHub committed 2025-10-28 14:26:08 +00:00
1 parent 3ccb6632f2
commit b01d21c4d4
2 files changed
+7 -2

No files matched your search

@@ -26,7 +26,12 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
...props
}) => {
// Handle hashtags
if (text.startsWith('#') || prevText?.endsWith('#')) {
if (
text.startsWith('#') ||
prevText?.endsWith('#') ||
text.startsWith('#') ||
prevText?.endsWith('#')
) {
const hashtag = text.slice(1).trim();
return (
<Link