Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
gpt_markdown
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
saminsohag
2025-07-03 11:49:59 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
80ce8936b7decef215ed0f9b8af17738c7b29ef4
80ce8936
1 parent
c727f47e
fixed text decoration color of link markdown component.
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
CHANGELOG.md
README.md
example/lib/main.dart
lib/markdown_component.dart
CHANGELOG.md
View file @
80ce893
## 1.1.2
*
🔗 Fixed text decoration color of link markdown component
## 1.1.1
*
🖼️ Fixed issue where images wrapped in links (e.g.
`[](url)`
) were not rendering properly (#72)
...
...
README.md
View file @
80ce893
...
...
@@ -140,7 +140,8 @@ return GptMarkdown(
* This is a unordered list.
'''
,
style:
const
TextStyle
(
color:
Colors
.
red
,
color:
Colors
.
red
,
),
),
```
...
...
example/lib/main.dart
View file @
80ce893
...
...
@@ -515,13 +515,13 @@ This document was created to test the robustness of Markdown parsers and to ensu
RegExp
(
r"align\*"
),
(
match
)
=>
"aligned"
);
},
imageBuilder:
(
context
,
url
)
{
return
Image
.
network
(
url
,
width:
100
,
height:
100
,
);
},
// imageBuilder: (context, url) {
// return Image.network(
// url,
// width: 100,
// height: 100,
// );
// },
latexBuilder:
(
context
,
tex
,
textStyle
,
inline
)
{
if
(
tex
.
contains
(
r"\begin{tabular}"
))
{
...
...
lib/markdown_component.dart
View file @
80ce893
...
...
@@ -856,7 +856,10 @@ 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
),
style:
config
.
style
?.
copyWith
(
color:
theme
.
linkColor
,
decorationColor:
theme
.
linkColor
,
),
);
// Use custom builder if provided
...
...
Please
register
or
login
to post a comment