prism_markdown 0.4.0
prism_markdown: ^0.4.0 copied to clipboard
A fast, plugin-free Markdown widget for Flutter with full CommonMark and GFM support. The maintained replacement for the discontinued flutter_markdown package.
Changelog #
0.4.0 #
- Feature: added
asyncParsing,placeholder, andparseRunnerparameters toPrismMarkdown. WhenasyncParsingis true, markdown is parsed in a background isolate viaIsolate.runso long documents do not block the UI thread — fixes scroll jitter when building many markdown widgets in scrollable lists. Aplaceholderwidget is shown while parsing;parseRunnerallows custom scheduling or synchronous testing. Implements flutter/flutter#81772.
0.3.0 #
- Feature: added
maxLinesandoverflowparameters toPrismMarkdownfor truncating text blocks (headings, paragraphs, list items, table cells). Text beyondmaxLinesis truncated with the specifiedTextOverflow(defaults to ellipsis). Code blocks are never truncated. Implements the most-requested feature from the discontinuedflutter_markdown(flutter/flutter#81739).
0.2.2 #
- Docs: fixed broken "Render every element" code example on pub.dev (nested code fence now renders correctly), converted feature list to bullets, and corrected the flutter_markdown migration table.
0.2.1 #
- Docs: rewritten README with full usage guide, migration table from
flutter_markdown, screenshots section, and FAQ. - Docs: added GitHub repo badges and About/description metadata.
0.2.0 #
- Fixed: the widget now re-parses and re-renders when
datachanges (previously it kept showing stale content). - New:
highlightercallback for custom syntax highlighting of fenced and inline code, with automatic language detection from the fence info. - New:
imageBuildercallback to fully customize image rendering (e.g. CachedNetworkImage, local assets) with a built-in network fallback. - New: documented first-class support for all Flutter platforms — Android, iOS, macOS, Windows, Linux, and web (pure Flutter, no plugins).
0.1.1 #
- Improved README documentation.
0.1.0 #
- Initial release.
- Full CommonMark parsing with GFM extensions (tables, strikethrough, task lists, autolinks).
PrismMarkdownwidget with selectable text and link tap callbacks.PrismMarkdownStylefor theming all block and inline elements.