Releases: noties/Markwon
Releases · noties/Markwon
v4.6.2
v4.6.1
Changed
core-CustomTypefaceSpannewmergeStylesfunctionality and new factory method(#298)
Thanks @c-b-himage-coil- updateCoilto0.13.0(#303)
Thanks @ubuntudroid
Deprecated
core-CustomTypefaceSpan(Typeface)constructor, useCustomTypefaceSpan.create(Typeface)
orCustomTypefaceSpan.create(Typeface, boolean)factory methods instead
v4.6.0
Added
ext-tables-TableAwareMovementMethoda special movement method to handle clicks inside tables (#289)
Changed
ext-tasklist- changed implementation to be in line with GFM (Github flavored markdown),
task list item is a regular list item (BulletList and OrderedList can contain it).
Internal implementation changed from block parsing to node post processing (#291)image-glide- update to4.11.0versioninline-parser- revert parsing index whenInlineProcessorreturnsnullas resultimage-coil- updateCoilto0.12.0(Coil changelog) (#284)
Thanks @magnusvs
v4.5.1
v4.5.0
Added
core-MovementMethodPlugin.none(),MovementMethodPlugin.link()factory methodscore-CorePluginhasExplicitMovementMethodconfiguration method to not add implicitLinkMovementMethodinafterSetTextcore-MarkwonThemeisLinkedUnderlinedattribute for links(#270)
Thanks to @dallasgutauckisext-latex-JLatexMathTheme.Padding.of(int,int,int,int)factory methodapp-sample- example application
Changed
html-SimpleTagHandlervisits children tags if supplied tag is block one (#235)inline-parser-BangInlineProcessorproperly returnsnullif no image node is found (possible to define other inline parsers that use!as special character)image-AsyncDrawablewon't trigger loading if it has result (aim:RecyclerViewdue to multiple attach/detach events of a View)image-AsyncDrawablewill resume result if it isAnimatableand was playing before detach event (aim:RecyclerView) (#241)core-MarkwonReducerfilter outLinkReferenceDefinitionnodes
Fixed
image-glidecacheRequestManagerinGlideImagesPlugin#create(Context)factory method (#259)
Deprecated
core-MovementMethodPlugin.create()use explicitMovementMethodPlugin.link()instead
Removed
image-AsyncDrawable#hasKnownDimentions(deprecated in4.2.1)appandsampleapplications (merged together in aapp-samplesingle app)
v4.4.0
TextViewSpanto obtainTextViewin which markdown is displayed (applied byCorePlugin)TextLayoutSpanto obtainLayoutin which markdown is displayed (applied byTablePlugin, more specificallyTableRowSpanto propagate layout in which cell content is displayed)HtmlEmptyTagReplacementnow is configurable byHtmlPlugin,iframehandling (#235)AsyncDrawablenow usesTextViewwidth without padding instead of width of canvas- Support for images inside table cells (
ext-tablesmodule) - Expose
enabledBlockTypesinCorePlugin - Update
jlatexmath-androiddependency (#225) - Update
image-coilmodule (Coil version0.10.1) (#244)
Thanks to @tylerbwong - Rename
UrlProcessortoImageDestinationProcessor(io.noties.markwon.urlprocessor->io.noties.markwon.image.destination) and limit its usage to process only destination URL of images (was used to also process links before) fallbackToRawInputWhenEmptyMarkwon.Builderconfiguration to fallback to raw input if rendered markdown is empty (#242)
v4.3.1
- Fix DexGuard optimization issue (#216)
Thanks @francescocervone - module
images:GifSupportandSvgSupportuseClass.forNameinstead access to full qualified class name ext-table: fix links in tables (#224)ext-table: proper borders (equal for all sides)- module
core: AddPrecomputedFutureTextSetterCompat
Thanks @KirkBushman
v4.3.0
- add
MarkwonInlineParserPluginininline-parsermodule JLatexMathPluginnow supports inline LaTeX structures viaMarkwonInlineParserPlugin
dependency (must be explicitly added toMarkwonwhilst configuring)JLatexMathPlugin: addtheme(to customize both inlines and blocks)- add
JLatexMathPlugin.ErrorHandlerto catch latex rendering errors and (optionally) display error drawable (#204) JLatexMathPluginadd text color customization (#207)JLatexMathPluginwill use text color of widget in which it is displayed if color is not set explicitly- add
SoftBreakAddsNewLinePluginplugin (coremodule) LinkResolverDefdefaults tohttpswhen a link does not have scheme information (#75)- add
optionabstraction forsamplemodule allowing switching of multiple cases in runtime via menu - non-empty bounds for
AsyncDrawablewhen no dimensions are not yet available (#189) linkify- option to useLinkifyCompatinLinkifyPlugin(#201)
Thanks to @drakeetMarkwonVisitor.BlockHandlerandBlockHandlerDefimplementation to control how blocks insert new lines after them
// default usage: new blocks parser, no inlines
final Markwon markwon = Markwon.builder(this)
.usePlugin(JLatexMathPlugin.create(textSize))
.build();// legacy blocks (pre `4.3.0`) parsing, no inlines
final Markwon markwon = Markwon.builder(this)
.usePlugin(JLatexMathPlugin.create(textView.getTextSize(), builder -> builder.blocksLegacy(true)))
.build();// new blocks parsing and inline parsing
final Markwon markwon = Markwon.builder(this)
.usePlugin(JLatexMathPlugin.create(textView.getTextSize(), builder -> {
// blocksEnabled and blocksLegacy can be omitted
builder
.blocksEnabled(true)
.blocksLegacy(false)
.inlinesEnabled(true);
}))
.build();v4.2.2
v4.2.1
- Fix SpannableBuilder
subSequencemethod - Introduce Nougat check in
BulletListItemSpanto position bullet (for bullets to be
positioned correctly when nested inside otherLeadingMarginSpans) - Reduced number of invalidations in AsyncDrawable when result is ready
- AsyncDrawable#hasKnownDimentions -> AsyncDrawable#hasKnownDimensions typo fix