elegant_markdown 0.1.0
elegant_markdown: ^0.1.0 copied to clipboard
A high-quality Flutter Markdown + LaTeX renderer. Supports GFM, inline/block math formulas, syntax-highlighted code blocks, task lists, tables, and Light/Dark themes. Styled after Notion / GitHub.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2026-03-20 #
Added #
- Core component
ElegantMarkdownwidget with full GFM support - LaTeX math rendering via
flutter_math_fork- Inline math:
$...$ - Single-line display math:
$$...$$ - Multi-line block math: fenced
$$blocks
- Inline math:
- Code syntax highlighting via
flutter_highlightwith 20+ language themes- Language label badge in code block header
- One-click copy button with animated feedback
- Horizontal scroll for long code lines
ElegantMarkdownThemewith built-in Light and Dark presets- Auto-follows system
Brightnesswhenthemeis omitted - Fully customizable colors and highlight themes
- Auto-follows system
- Task list checkboxes (
- [x]/- [ ]) - Tables with GFM border support
- Blockquotes with left border and subtle background
- Images with loading indicator and error placeholder
- Link handling via
url_launcherwith optional custom callback - Selectable text via
selectableparameter maxWidthconstraint for centered reading layouts