diff --git a/lib/markdown_component.dart b/lib/markdown_component.dart index 9b2f78a..c0d9cfc 100644 --- a/lib/markdown_component.dart +++ b/lib/markdown_component.dart @@ -855,8 +855,11 @@ class ATagMd extends InlineMd { ); var theme = GptMarkdownTheme.of(context); var linkTextSpan = TextSpan( - children: MarkdownComponent.generate(context, linkText, config, false), - style: config.style?.copyWith(color: theme.linkColor), + text: linkText, + style: config.style?.copyWith( + color: theme.linkColor, + decorationColor: theme.linkColor, + ), ); // Use custom builder if provided