Skip to content

Releases: noties/Markwon

v4.2.0

15 Nov 15:06
b844f4d
Compare
Choose a tag to compare
  • MarkwonEditor to highlight markdown input whilst editing (new module: markwon-editor)
  • CoilImagesPlugin image loader based on Coil library (new module: markwon-image-coil) (#166, #174)
    Thanks to @tylerbwong
  • MarkwonInlineParser to customize inline parsing (new module: markwon-inline-parser)
  • Update commonmark-java to 0.13.0 (and commonmark spec 0.29)
  • Markwon#configuration method to expose MarkwonConfiguration via public API
  • HeadingSpan#getLevel getter
  • Add SvgPictureMediaDecoder in image module to deal with SVG without dimensions (#165)
  • LinkSpan#getLink method
  • LinkifyPlugin applies link span that is configured by Markwon (obtain via span factory)
  • LinkifyPlugin is thread-safe

v4.1.2

16 Oct 13:05
ba22ca8
Compare
Choose a tag to compare
  • Do not re-use RenderProps when creating a new visitor (fixes #171)

v4.1.1

29 Aug 11:49
Compare
Choose a tag to compare
  • markwon-ext-tables: fix padding between subsequent table blocks (#159)
  • markwon-images: print a single warning instead full stacktrace in case when SVG or GIF
    are not present in the classpath (#160)
  • Make Markwon instance thread-safe by using a single MarkwonVisitor for each render call (#157)
  • Add CoreProps.CODE_BLOCK_INFO with code-block info (language)

v4.1.0

06 Aug 15:32
3fe514a
Compare
Choose a tag to compare
  • Add Markwon.TextSetter interface to be able to use PrecomputedText/PrecomputedTextCompat
  • Add PrecomputedTextSetterCompat and compileOnly dependency on androidx.core:core
    (clients must have this dependency in the classpath)
  • Add requirePlugin(Class) and getPlugins for Markwon instance
  • TablePlugin -> defer table invalidation (via View.post), so only one invalidation
    happens with each draw-call
  • AsyncDrawableSpan -> defer invalidation

v4.0.2

15 Jul 12:46
Compare
Choose a tag to compare
  • Fix JLatexMathPlugin formula placeholder (cannot have line breaks) (#149)
  • Fix JLatexMathPlugin to update resulting formula bounds when fitCanvas=true and
    formula exceed canvas width (scale down keeping formula width/height ratio)

v4.0.1

03 Jul 09:19
Compare
Choose a tag to compare
  • Fix JLatexMathPlugin (background-provider null) (#147)

v4.0.0

01 Jul 16:53
Compare
Choose a tag to compare
  • maven group-id change to io.noties.markwon (was ru.noties.markwon)
  • package name change to io.notier.markwon.* (was ru.noties.markwon.*)
  • androidx artifacts (#76)
  • Markwon#builder does not require explicit CorePlugin (added automatically),
    use Markwon#builderNoCore() to obtain a builder without CorePlugin
  • Removed Priority abstraction and MarkwonPlugin#priority (use MarkwonPlugin.Registry)
  • Removed MarkwonPlugin#configureHtmlRenderer (for configuration use HtmlPlugin directly)
  • Removed MarkwonPlugin#configureImages (for configuration use ImagesPlugin directly)
  • Added MarkwonPlugin.Registry and MarkwonPlugin#configure(Registry) method
  • CorePlugin#addOnTextAddedListener (process raw text added)
  • ImageSizeResolver signature change (accept AsyncDrawable)
  • LinkResolver is now an independent entity (previously part of LinkSpan)
  • AsyncDrawableScheduler can now be called multiple times without performance penalty
  • AsyncDrawable now exposes its destination, image-size, last known dimensions (canvas, text-size)
  • AsyncDrawableLoader signature change (accept AsyncDrawable)
  • Add LastLineSpacingSpan
  • Add MarkwonConfiguration.Builder#asyncDrawableLoader method
  • ImagesPlugin removed from core artifact
    (also removed images-gif, images-okhttp and images-svg artifacts and their plugins)
  • ImagesPlugin exposes configuration (adding scheme-handler, media-decoder, etc)
  • ImagesPlugin allows multiple images with the same source (URL)
  • Add PlaceholderProvider and ErrorHandler to ImagesPlugin
  • GIF and SVG media-decoders are automatically added to ImagesPlugin if required libraries are found in the classpath
  • ImageItem is now abstract, has 2 implementations: withResult, withDecodingNeeded
  • Add images-glide, images-picasso, linkify, simple-ext modules
  • JLatexMathPlugin is now independent of ImagesPlugin
  • Fix wrong JLatexMathPlugin formulas sizes (#138)
  • JLatexMathPlugin has backgroundProvider, executorService configuration
  • HtmlPlugin is self-contained (all configuration is moved in the plugin itself)

v3.1.0

01 Jul 13:51
Compare
Choose a tag to compare
  • AsyncDrawable exposes ImageSize, ImageSizeResolver and last known dimensions (canvas width and text size)
  • AsyncDrawableLoader load and cancel signatures change - both accept an AsyncDrawable
  • Fix for multiple images with the same source in AsyncDrawableLoader

With this release Markwon 3.x.x version goes into maintenance mode. No new features will be added in 3.x.x version, development is focused on 4.x.x version.

v3.0.2

19 Jun 09:38
Compare
Choose a tag to compare
  • Fix latex plugin (#136)
  • Add #create(Call.Factory) factory method to OkHttpImagesPlugin (#129)
    thanks to @ZacSweers

v3.0.1

18 Jun 08:11
77b3455
Compare
Choose a tag to compare
  • Add AsyncDrawableLoader.Builder#implementation method (#109 )
  • AsyncDrawable allow placeholder to have independent size (#115 )
  • addFactory method for MarkwonSpansFactory
  • Add optional spans for list blocks (bullet and ordered)
  • AsyncDrawable placeholder bounds fix
  • SpannableBuilder setSpans allow array of arrays
  • Add requireFactory method to MarkwonSpansFactory
  • Add DrawableUtils