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-02-14 23:31:42 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
998315d7e5c02b37629ee222586e7c21992ab9e4
998315d7
1 parent
08e51243
fixed 3.29.0 issue and > syntax issue
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
9 deletions
CHANGELOG.md
example/lib/main.dart
lib/gpt_markdown.dart
lib/markdown_component.dart
pubspec.yaml
CHANGELOG.md
View file @
998315d
## 1.0.9
*
Fixed issues with flutter 3.29.0.
*
Fixed > syntax render issue.
## 1.0.8
*
Extra lines inside block latex removed and $$..$$ syntax works with
\(
..
\)
syntax.
...
...
example/lib/main.dart
View file @
998315d
...
...
@@ -413,8 +413,12 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
},
linkBuilder:
(context, label, path, style) {
//
return Text(path);
return Text(
label,
style: style.copyWith(
color: Colors.blue,
),
);
},
// codeBuilder: (context, name, code, closed) {
// return Padding(
...
...
lib/gpt_markdown.dart
View file @
998315d
library
gpt_markdown
;
import
'package:flutter/material.dart'
;
import
'package:gpt_markdown/custom_widgets/markdow_config.dart'
;
...
...
lib/markdown_component.dart
View file @
998315d
...
...
@@ -376,7 +376,7 @@ class UnOrderedList extends BlockMd {
kDefaultFontSize
),
textDirection:
config
.
textDirection
,
child:
MdWidget
(
"
${match?[1]}
"
,
"
${match?[1]
?.trim()
}
"
,
config:
config
,
),
);
...
...
@@ -401,7 +401,7 @@ class OrderedList extends BlockMd {
style:
(
config
.
style
??
const
TextStyle
())
.
copyWith
(
fontWeight:
FontWeight
.
w100
),
child:
MdWidget
(
"
${match?[2]}
"
,
"
${match?[2]
?.trim()
}
"
,
config:
config
,
),
);
...
...
@@ -736,12 +736,14 @@ class ATagMd extends InlineMd {
final
linkText
=
match
?[
1
]
??
""
;
final
url
=
match
?[
2
]
??
""
;
var
builder
=
config
.
linkBuilder
;
// Use custom builder if provided
if
(
config
.
linkB
uilder
!=
null
)
{
if
(
b
uilder
!=
null
)
{
return
WidgetSpan
(
child:
GestureDetector
(
onTap:
()
=>
config
.
onLinkTab
?.
call
(
url
,
linkText
),
child:
config
.
linkBuilder
!
(
child:
builder
(
context
,
linkText
,
url
,
...
...
pubspec.yaml
View file @
998315d
name
:
gpt_markdown
description
:
"
Powerful
Markdown
&
LaTeX
Renderer
for
Flutter:
Rich
Text,
Math,
Tables,
Links,
and
Text
Selection.
Ideal
for
ChatGPT,
Gemini,
and
more."
version
:
1.0.
8
version
:
1.0.
9
homepage
:
https://github.com/Infinitix-LLC/gpt_markdown
environment
:
...
...
Please
register
or
login
to post a comment