Merge pull request #573 from ekzyis/fix-typo-concious

Fix typo: concious -> conscious
This commit is contained in:
Keyan 2023-10-20 19:06:20 -05:00 committed by GitHub
commit f5774b06c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ export default memo(function Text ({ nofollow, imgproxyUrls, children, tab, ...o
} }
// If [text](url) was parsed as <a> and text is not empty and not a link itself, // If [text](url) was parsed as <a> and text is not empty and not a link itself,
// we don't render it as an image since it was probably a concious choice to include text. // we don't render it as an image since it was probably a conscious choice to include text.
const text = children[0] const text = children[0]
if (!!text && !/^https?:\/\//.test(text)) { if (!!text && !/^https?:\/\//.test(text)) {
return <a target='_blank' rel={`noreferrer ${nofollow ? 'nofollow' : ''} noopener`} href={href}>{text}</a> return <a target='_blank' rel={`noreferrer ${nofollow ? 'nofollow' : ''} noopener`} href={href}>{text}</a>