Releases: noties/Markwon
Releases · noties/Markwon
v4.2.0
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 @tylerbwongMarkwonInlineParser
to customize inline parsing (new module:markwon-inline-parser
)- Update commonmark-java to
0.13.0
(and commonmark spec0.29
) Markwon#configuration
method to exposeMarkwonConfiguration
via public APIHeadingSpan#getLevel
getter- Add
SvgPictureMediaDecoder
inimage
module to deal with SVG without dimensions (#165) LinkSpan#getLink
methodLinkifyPlugin
applies link span that is configured byMarkwon
(obtain via span factory)LinkifyPlugin
is thread-safe
v4.1.2
v4.1.1
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 singleMarkwonVisitor
for eachrender
call (#157) - Add
CoreProps.CODE_BLOCK_INFO
with code-block info (language)
v4.1.0
- Add
Markwon.TextSetter
interface to be able to use PrecomputedText/PrecomputedTextCompat - Add
PrecomputedTextSetterCompat
andcompileOnly
dependency onandroidx.core:core
(clients must have this dependency in the classpath) - Add
requirePlugin(Class)
andgetPlugins
forMarkwon
instance - TablePlugin -> defer table invalidation (via
View.post
), so only one invalidation
happens with each draw-call - AsyncDrawableSpan -> defer invalidation
v4.0.2
v4.0.1
v4.0.0
- maven group-id change to
io.noties.markwon
(wasru.noties.markwon
) - package name change to
io.notier.markwon.*
(wasru.noties.markwon.*
) - androidx artifacts (#76)
Markwon#builder
does not require explicitCorePlugin
(added automatically),
useMarkwon#builderNoCore()
to obtain a builder withoutCorePlugin
- Removed
Priority
abstraction andMarkwonPlugin#priority
(useMarkwonPlugin.Registry
) - Removed
MarkwonPlugin#configureHtmlRenderer
(for configuration useHtmlPlugin
directly) - Removed
MarkwonPlugin#configureImages
(for configuration useImagesPlugin
directly) - Added
MarkwonPlugin.Registry
andMarkwonPlugin#configure(Registry)
method CorePlugin#addOnTextAddedListener
(process raw text added)ImageSizeResolver
signature change (acceptAsyncDrawable
)LinkResolver
is now an independent entity (previously part ofLinkSpan
)AsyncDrawableScheduler
can now be called multiple times without performance penaltyAsyncDrawable
now exposes its destination, image-size, last known dimensions (canvas, text-size)AsyncDrawableLoader
signature change (acceptAsyncDrawable
)- Add
LastLineSpacingSpan
- Add
MarkwonConfiguration.Builder#asyncDrawableLoader
method ImagesPlugin
removed fromcore
artifact
(also removedimages-gif
,images-okhttp
andimages-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
andErrorHandler
toImagesPlugin
GIF
andSVG
media-decoders are automatically added toImagesPlugin
if required libraries are found in the classpathImageItem
is now abstract, has 2 implementations:withResult
,withDecodingNeeded
- Add
images-glide
,images-picasso
,linkify
,simple-ext
modules JLatexMathPlugin
is now independent ofImagesPlugin
- Fix wrong
JLatexMathPlugin
formulas sizes (#138) JLatexMathPlugin
hasbackgroundProvider
,executorService
configurationHtmlPlugin
is self-contained (all configuration is moved in the plugin itself)
v3.1.0
AsyncDrawable
exposesImageSize
,ImageSizeResolver
and last known dimensions (canvas width and text size)AsyncDrawableLoader
load
andcancel
signatures change - both accept anAsyncDrawable
- 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
v3.0.1
- 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