V-2.3.0
What's changed
- Fix: issues related with detecting storage images.
- Fix: issues related with
ThemeDatafrom PDF not being applied to the pdf document. - Fix: issues related with the font size of the
ThemeDatanot being applied as expected. - Fix: wrong default code-block widget.
- Fix: wrong default list widget.
- Fix: issue where the default leading of ordered lists is not being computed correctly.
- Fix: wrong behavior if
textDirectionis passed inPDFConverter. - Fix: bad rendering of content elements by not await for
_applyBlockAttributes()inPDFServiceclass. - Fix(partially): bad rendering of content elements when directionality is RTL.
- Chore(breaking changes): reorganized project structure.
- Chore: deprecated
createDocumentFilesince we cannot manage the errors with file permissions. - Chore: deprecated
blockquotePaddingLeftandblockquotePaddingRightand replaced withblockquotePadding. - Chore: deprecated
blockquoteDividerColorreplaced withblockquoteBoxDecoration. - Chore(breaking changes): renamed
blockQuotethicknessDividerColortoblockquotethicknessDividerColor. - Chore(breaking changes): renamed
blockQuoteBackgroundColortoblockquoteBackgroundColor. - Chore(breaking changes): renamed
blockQuoteTextStyletoblockquoteTextStyle. - Chore(breaking changes): renamed
IMAGE_FROM_URL_PATTERNtokDefaultImageUrlDetectorinConstantclass. - Chore: renamed
_applyBlockAttributes()to_defaultLineBuilderForBlocks()inPDFServiceclass. - Chore: renamed
_applyInlineParagraph()to_defaultLineBuilderForInlines()inPDFServiceclass. - Chore: deprecated
fixCommonErrorInsertsInRawDeltaandisTotallyEmptymethods since them are not longer used into the project. - Chore: moved embed implementation to
_defaultEmbedLineBuilder()inPDFServiceclass. - Chore: created
_applyCustomBlocks()to add all the necessary logic for add custom widgets from the custom callbacks inPDFServiceclass. - Chore(breaking changes): renamed
md_extensionfile toheader_level_extensionin extensions. - Chore(breaking changes): renamed
MdHeaderLevelExtensiontoHeaderLevelResolverExtensionin extensions. - Chore(doc): added customization documention (only partially).
- Chore(breaking changes): added
extraArgsparam to allPDFWidgetBuilder. - Chore: deprecated
IMAGE_LOCAL_STORAGE_PATH_PATTERNsince only works for android devices. - Chore: deprecated
DeltaAttributesOptions,overrideAttributesPassedByUser,deltaOptionalAttrandshouldProcessDeltasinPDFConverter, since its implementation is not needed for the current target of the package. - Feat: added
isFromLocalStoragemethod to detect is the input passed is a storage path. - Feat: added
onDetectImageUrlto allow us create our custom implementation for get bytes from a external url. - Feat: added
imageConstraintsto create a default width and height for images when them has not that attributes specified. - Feat: added support for custom code-block highlighting theme using
customCodeHighlightTheme. Check about highlight_utils. - Feat: added support for build error images using
onDetectErrorInImage. - Feat: added support for build video widgets
onDetectVideoBlock. - Feat: added support for build a custom
TextStylefor inline-code fragments usinginlineCodeStyle. - Feat: added support for build custom leading widgets for lists using
listLeadingBuilder. - Feat: added support for code-block highlighting using
enableCodeBlockHighlightingandisLightMode. - Feat: added support for custom heading sizes using
customHeadingSizes. - Feat: added support for switch between the different versions of the default list blocks using
listTypeWidget.
Full Changelog: V-2.2.9...V-2.3.0