GPT Markdown
A Flutter widget for rendering Markdown and LaTeX — optimized for AI-generated content from ChatGPT, Gemini, and Claude. Drop it in anywhere you display text from an LLM.
Quick start
terminal
1flutter pub add gpt_markdownmain.dart
1import 'package:gpt_markdown/gpt_markdown.dart';
2
3GptMarkdown(
4 r'**Hello!** Inline math: \( E = mc^2 \)',
5)That's it. LaTeX, bold, tables, code blocks, and more work out of the box — no extra configuration needed.
Documentation
Installation
Add the package to your project in one command.
Basic Usage
Simple and advanced usage examples.
Markdown Features
Full list of supported Markdown elements.
LaTeX Support
Inline and block math, dollar-sign syntax, custom builder.
Syntax Highlighting
Built-in code highlighting and custom codeBuilder.
Themes
Dark/light theming with GptMarkdownTheme.
Style & Params
Complete reference for every widget parameter.
Custom Components
Register your own block and inline Markdown elements.