span method
Implementation
@override
InlineSpan span(
BuildContext context,
String text,
final GptMarkdownConfig config,
) {
var match = exp.firstMatch(text.trim());
var data = match?[1] ?? match?[2];
var conf = config.copyWith(
style: (config.style ?? const TextStyle()).copyWith(
fontStyle: FontStyle.italic,
),
);
return TextSpan(
children: MarkdownComponent.generate(context, "$data", conf),
style: conf.style,
);
}