saminsohag

fixed 3.29.0 issue and > syntax issue

## 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.
... ...
... ... @@ -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(
... ...
library gpt_markdown;
import 'package:flutter/material.dart';
import 'package:gpt_markdown/custom_widgets/markdow_config.dart';
... ...
... ... @@ -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.linkBuilder != null) {
if (builder != null) {
return WidgetSpan(
child: GestureDetector(
onTap: () => config.onLinkTab?.call(url, linkText),
child: config.linkBuilder!(
child: builder(
context,
linkText,
url,
... ...
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:
... ...