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
2024-11-16 09:00:30 +0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
955d69af05db1fdcd66ed151d95dc749fa96397e
955d69af
1 parent
bb78efc7
files are now formated
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
gpt_markdown/lib/markdown_component.dart
gpt_markdown/lib/markdown_component.dart
View file @
955d69a
...
...
@@ -330,8 +330,7 @@ class IndentMd extends BlockMd {
padding:
spaces
*
5
,
bulletSize:
0
,
textDirection:
config
.
textDirection
,
child:
Text
.
rich
(
TextSpan
(
child:
Text
.
rich
(
TextSpan
(
children:
MarkdownComponent
.
generate
(
context
,
"
${match?[2]}
"
,
...
...
@@ -458,6 +457,7 @@ class BoldMd extends InlineMd {
);
}
}
class
StrikeMd
extends
InlineMd
{
@override
RegExp
get
exp
=>
RegExp
(
r"(?<!\*)\~\~(?<!\s)(.+?)(?<!\s)\~\~(?!\*)"
);
...
...
@@ -471,11 +471,12 @@ class StrikeMd extends InlineMd {
var
match
=
exp
.
firstMatch
(
text
.
trim
());
var
conf
=
config
.
copyWith
(
style:
config
.
style
?.
copyWith
(
decoration:
TextDecoration
.
lineThrough
,
decorationColor:
config
.
style
?.
color
,
)
??
const
TextStyle
(
decoration:
TextDecoration
.
lineThrough
,
));
decoration:
TextDecoration
.
lineThrough
,
decorationColor:
config
.
style
?.
color
,
)
??
const
TextStyle
(
decoration:
TextDecoration
.
lineThrough
,
));
return
TextSpan
(
children:
MarkdownComponent
.
generate
(
context
,
...
...
Please
register
or
login
to post a comment