saminsohag

fixed text decoration color of link markdown component.

  1 +## 1.1.2
  2 +
  3 +* 🔗 Fixed text decoration color of link markdown component
  4 +
1 ## 1.1.1 5 ## 1.1.1
2 6
3 * 🖼️ Fixed issue where images wrapped in links (e.g. `[![](img)](url)`) were not rendering properly (#72) 7 * 🖼️ Fixed issue where images wrapped in links (e.g. `[![](img)](url)`) were not rendering properly (#72)
@@ -141,6 +141,7 @@ return GptMarkdown( @@ -141,6 +141,7 @@ return GptMarkdown(
141 ''', 141 ''',
142 style: const TextStyle( 142 style: const TextStyle(
143 color: Colors.red, 143 color: Colors.red,
  144 + ),
144 ), 145 ),
145 146
146 ``` 147 ```
@@ -515,13 +515,13 @@ This document was created to test the robustness of Markdown parsers and to ensu @@ -515,13 +515,13 @@ This document was created to test the robustness of Markdown parsers and to ensu
515 RegExp(r"align\*"), 515 RegExp(r"align\*"),
516 (match) => "aligned"); 516 (match) => "aligned");
517 }, 517 },
518 - imageBuilder: (context, url) {  
519 - return Image.network(  
520 - url,  
521 - width: 100,  
522 - height: 100,  
523 - );  
524 - }, 518 + // imageBuilder: (context, url) {
  519 + // return Image.network(
  520 + // url,
  521 + // width: 100,
  522 + // height: 100,
  523 + // );
  524 + // },
525 latexBuilder: 525 latexBuilder:
526 (context, tex, textStyle, inline) { 526 (context, tex, textStyle, inline) {
527 if (tex.contains(r"\begin{tabular}")) { 527 if (tex.contains(r"\begin{tabular}")) {
@@ -856,7 +856,10 @@ class ATagMd extends InlineMd { @@ -856,7 +856,10 @@ class ATagMd extends InlineMd {
856 var theme = GptMarkdownTheme.of(context); 856 var theme = GptMarkdownTheme.of(context);
857 var linkTextSpan = TextSpan( 857 var linkTextSpan = TextSpan(
858 children: MarkdownComponent.generate(context, linkText, config, false), 858 children: MarkdownComponent.generate(context, linkText, config, false),
859 - style: config.style?.copyWith(color: theme.linkColor), 859 + style: config.style?.copyWith(
  860 + color: theme.linkColor,
  861 + decorationColor: theme.linkColor,
  862 + ),
860 ); 863 );
861 864
862 // Use custom builder if provided 865 // Use custom builder if provided