InlineLatexBuilder typedef
InlineLatexBuilder =
InlineSpan Function(InlineLatexBuildDetails details)
Builds the span for one inline formula — \(…\), or $…$ with
GptMarkdown.useDollarSignsForLatex.
Return InlineLatexBuildDetails.defaultSpan to keep the stock formula, a
span of your own (a MathSpan from val_latex_flutter with its own
onTap, or plain text), or InlineLatexBuildDetails.asWidgetSpan around
a widget:
inlineLatexBuilder: (latex) => latex.asWidgetSpan(
Tooltip(message: latex.source, child: latex.defaultWidget()),
),
Implementation
typedef InlineLatexBuilder =
InlineSpan Function(InlineLatexBuildDetails details);