New Features
Custom markdown components (closes #13)
You can now override how gpt_markdown renders any markdown element — headers, lists, bold, italic, tables, strikethrough, etc. — by passing your own MarkdownComponent lists.
StreamingTextMarkdown(
text: '# Custom heading\n**bold** *italic*',
markdownEnabled: true,
components: [
MyCustomHeader(),
MyCustomList(),
// ...
],
inlineComponents: [
MyCustomBold(),
MyCustomItalic(),
],
)Both params are List<MarkdownComponent>? and forward as-is to GptMarkdown. Defaults to null → uses gpt_markdown's built-in component list.
Available on every constructor: default, .chatGPT(), .claude(), .typewriter(), .instant(), .fromPreset().
Non-breaking. No user code changes required.
Pub.dev
https://pub.dev/packages/flutter_streaming_text_markdown/versions/1.8.0