diff --git a/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts b/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts index ed3871c6d..cb9a1bab9 100644 --- a/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts +++ b/packages/uiweb/src/lib/components/parsetext/defaultPatterns.ts @@ -56,7 +56,7 @@ function renderTextStyles(matchingString: string) { function renderLinkWithColor(matchingString: string) { const pattern = - /(.*?)<\/a>/i; + /(.*?)<\/PUSHText>/i; const linkPattern = /\[([^\]]+)]\((https?:\/\/[^)]+)/; const match = matchingString.match(pattern); const markdownLinkPattern = matchingString.match(linkPattern); @@ -250,7 +250,7 @@ const DEFAULT_PATTERNS: CustomParseShape[] = [ }, { pattern: - /(.*?)<\/a>/gi, + /(.*?)<\/PUSHText>/gi, style: {}, // can Add additional styles here if needed renderText: renderLinkWithColor, },