saminsohag

fied issue #49

## 1.0.13
* Fixed issue [#49](https://github.com/Infinitix-LLC/gpt_markdown/issues/49).
## 1.0.12
* imageBuilder parameter added.
... ...
... ... @@ -8,6 +8,8 @@
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
... ...
... ... @@ -4,6 +4,8 @@
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
... ...
... ... @@ -7,6 +7,7 @@ abstract class MarkdownComponent {
NewLines(),
IndentMd(),
ImageMd(),
ATagMd(),
TableMd(),
HTag(),
UnOrderedList(),
... ... @@ -14,14 +15,13 @@ abstract class MarkdownComponent {
RadioButtonMd(),
CheckBoxMd(),
HrLine(),
StrikeMd(),
BoldMd(),
ItalicMd(),
LatexMath(),
LatexMathMultiLine(),
ImageMd(),
HighlightedText(),
StrikeMd(),
BoldMd(),
ItalicMd(),
ATagMd(),
SourceTag(),
];
... ... @@ -44,7 +44,13 @@ abstract class MarkdownComponent {
onMatch: (p0) {
String element = p0[0] ?? "";
for (var each in components) {
if (each.exp.hasMatch(element)) {
var p = each.exp.pattern;
var exp = RegExp(
'^$p',
multiLine: each.exp.isMultiLine,
dotAll: each.exp.isDotAll,
);
if (exp.hasMatch(element)) {
if (each.inline) {
spans.add(each.span(context, element, config));
} else {
... ... @@ -127,7 +133,7 @@ abstract class BlockMd extends MarkdownComponent {
var child = build(context, text, config);
length = min(length, 4);
if (length > 0) {
child = UnorderedListView(spacing: length * 6.0, child: child);
child = UnorderedListView(spacing: length * 1.0, child: child);
}
return WidgetSpan(child: child, alignment: PlaceholderAlignment.middle);
}
... ... @@ -420,6 +426,7 @@ class BoldMd extends InlineMd {
final GptMarkdownConfig config,
) {
var match = exp.firstMatch(text.trim());
print(match);
var conf = config.copyWith(
style:
config.style?.copyWith(fontWeight: FontWeight.bold) ??
... ...
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.12
version: 1.0.13
homepage: https://github.com/Infinitix-LLC/gpt_markdown
environment:
... ...