diff --git a/packages/content/src/index.ts b/packages/content/src/index.ts index affce2c..d67dd19 100644 --- a/packages/content/src/index.ts +++ b/packages/content/src/index.ts @@ -224,6 +224,11 @@ export const parseLink = (text: string, context: ParseContext): ParsedLink | voi return } + // Skip it if it looks like an IP address but doesn't have a protocol + if (link.match(/\d+\.\d+/) && !link.includes('://')) { + return + } + // Parse using URL, make sure there's a protocol let url try {