- Fixes issue with table column alignments not being respected.
- Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
- Adds horizontal scrolling for table when using
tableColumnWidth: FixedColumnWidth(width)
.
- Fixes a crash caused by text selection when
selectable
is true andonSelectionChanged
is null.
- Multiple code blocks within a single markdown will now use separate ScrollControllers.
- Allows for choosing a custom font feature to create superscript in footnotes when the font does not support the
supr
font feature.- Use the
superscriptFontFeatureTag
property inMarkdownStyleSheet
. - For example, for the
Roboto
font which doesn't supportsupr
, you can setnumr
.
- Use the
- BREAKING CHANGES:
- Replaces parameters at
bulletBuilder
withMarkdownBulletParameters
. - Introduces a new parameter
nestLevel
that exposes the bullet item's nesting level.
- Replaces parameters at
- Gracefully handle image dimension parsing failures.
- Removes
_ambiguate
methods from code.
- Introduces a new
MarkdownElementBuilder.isBlockElement()
method to specify if custom element is a block.
- Adds
onSelectionChanged
to the constructors ofMarkdown
andMarkdownBody
.
- Fixes support for
WidgetSpan
inText.rich
elements insideMarkdownElementBuilder
.
- Updates minimum supported SDK version to Flutter 3.19.
- Adds
textScaler
toMarkdownStyleSheet
, and deprecatestextScaleFactor
.- Clients using
textScaleFactor: someFactor
should replace it withTextScaler.linear(someFactor)
to preserve behavior.
- Clients using
- Removes use of deprecated Flutter framework
textScaleFactor
methods. - Updates minimum supported SDK version to Flutter 3.16.
- Replaces
RichText
withText.rich
so the widget can work withSelectionArea
whenselectable
is set to false.
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
- Fixes lint warnings.
- Removes leading whitespace from list items.
- Fixes a typo in README.
- Adds support for
footnote
.
- Fixes an issue where a code block would overlap its container decoration.
- Fixes an incorrect note about SDK versions in the 0.6.17+2 CHANGELOG.md entry.
- Adds pub topics to package metadata.
- Deletes deprecated splash screen meta-data element.
- Updates README to improve examples of using Markdown.
- Introduces a new
MarkdownElementBuilder.visitElementAfterWithContext()
method passing the widgetBuildContext
and the parent text'sTextStyle
.
- Adds
tableVerticalAlignment
property to allow aligning table cells vertically.
- Fixes 'The Scrollbar's ScrollController has no ScrollPosition attached' exception when scrolling scrollable code blocks.
- Fixes stale ignore: prefer_const_constructors.
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
- Fixes unawaited_futures violations.
- Updates minimum Flutter version to 3.3.
- Aligns Dart and Flutter SDK constraints.
- Replace
describeEnum
with thename
getter. - Supports custom rendering of tags without children.
- Require
markdown: ^7.0.0
- Adjusts code to account for nullability change in Flutter SDK.
- Updates the example to specify the import for
DropdownMenu
.
- Support changes in the latest
package:markdown
.
- Markdown Lists now take into account
fitContent
instead of always expanding to the maximum horizontally (flutter/flutter#108976).
- Deprecates and removes use of
TaskListSyntax
as new markdown package supports checkboxes natively. Consider usingOrderedListWithCheckBoxSyntax
orUnorderedListWithCheckBoxSyntax
as a replacement. - Changes
_buildCheckbox()
to inspect state of checkbox input element by existence of'checked'
attribute.
- Removes print logged when not handling hr for alignment.
- Removes print logged when not handling li for alignment.
- Fixes lint warnings.
- Updates text theme parameters to avoid deprecation issues.
- Fixes shrinkWrap not taken into account with single child (flutter/flutter#105299).
- Migrates from
ui.hash*
toObject.hash*
.
- Updates Linux example to remove unneeded library dependencies that could cause build failures.
- Updates for non-nullable bindings.
- Update
markdown
dependency
- Remove build status badge from
README.md
- Added option paddingBuilders
- Fix
unnecessary_import
lint errors. - Added option pPadding
- Added options h1Padding - h6Padding
- Soft line break
- Fix unique Keys for RichText blocks
- Fix merging of spans when first span is not a TextSpan
- Fixed
onTap
, now the changed hyperlinks are reflected even with keeping the same link name unchanged.
- Updated metadata for new source location
- Style changes to conform to flutter/packages analyzer settings
- Added builder option bulletBuilder
- Null safety release
- Added stylesheet option listBulletPadding
- Fixed blockquote inline styling
- Added onTapText handler for selectable text
- Dependencies updated for null safety
- Fix null safety on web
- Image test mocks fixed for null safety
- Initial null safety migration.
- Added
MarkdownListItemCrossAxisAlignment
to allow for intrinsic height measurements of lists.
- Fix user defined builders
- BREAKING CHANGE:
MarkdownTapLinkCallback
now has three parameters, not one, exposing more information about a tapped link.- Note for upgraders, the old single parameter
href
is now the second parameter to match the specification.
- Note for upgraders, the old single parameter
- Android example upgraded
- Test coverage updated to match GitHub Flavoured Markdown and CommonMark
- Handle links with empty descriptions
- Handle empty rows in tables
- Fix handling of newline character in blockquote
- Add new example demo
- Use the start attribute in ordered list to set the first number
- Revert changes made in PR #235 (which broke newline handling)
- Fix merging of
MarkdownStyleSheets
- Fix
MarkdownStyleSheet
textScaleFactor to use default value of 1.0, if not provided, instead using the textScaleFactor of the nearest MediaQuery
- Fix parsing of image caption & alt attributes
- Fix baseline alignment in lists
- Support
LineBreakSyntax
- Downgrade Flutter minimum from 1.17.1 to 1.17.0 for Pub
- Updated for Flutter 1.17
- Ignore newlines in paragraphs
- Improve handling of horizontal rules
- Fix hardcoded colors and improve Darktheme
- Fix text alignment when formatting is involved
- Add support for text paragraphs and blockquotes.
- Add the ability to control the scroll position of the
MarkdownWidget
.
- Uplift
package:markdown
dependency version to enable deleting HTML unescape URI workaround - Explictly state that Flutter 1.10.7 is the minimum supported Flutter version in the library
pubspec.yaml
.
- Expose
tableColumnWidth
- Add
MarkdownStyleSheet.fromCupertinoTheme
- Fix
MarkdownStyleSheet.blockquote
- Flutter for web support
- Add physic and shrinkWrap to Markdown widget
- Add MarkdownBody.fitContent
- Support select text to copy
- Fix list bullet alignment
- HTML unescape URIs (temporary workaround for dart-lang/markdown #272)
- Rebuilt
example/android
andexample/ios
directories
Note: this version has an implicit minimum supported version of Flutter 1.10.7. See flutter/flutter_markdown issue #156 for more detail.
- Support GitHub flavoured Markdown
- Support strikethrough
- Convert TextSpan to use new InlineSpan API
- Updated environment sdk constraints to make the package Dart 2 compatible. As a result, usage of this version and higher requires a Dart 2 SDK.
- Updated
markdown
dependency.
- Add
mockito
as a dev dependency. Eliminate use ofpackage:http
, which is no longer part of Flutter.
- Add
li
style to bullets
- Add
path
andhttp
as declared dependencies inpubspec.yaml
- Add support for horizontal rules.
- Fix the
onTap
callback on images nested in hyperlinks
- Add support for local file paths in image links. Make sure to set the
imageDirectory
property to specify the base directory containing the image files.
- Roll the dependency on
markdown
to 1.0.0 - Add a test and example for image links
- Fix the
onTap
callback on hyperlinks
- First published version