Skip to content

v3.0.0

Compare
Choose a tag to compare
@noties noties released this 18 Mar 14:16
· 349 commits to master since this release
d7558c8
  • Plugins, plugins, plugins
  • Split basic functionality blocks into standalone modules
  • Maven artifacts group changed to ru.noties.markwon (previously had been ru.noties)
  • removed markwon, markwon-image-loader, markwon-html-pareser-api, markwon-html-parser-impl, markwon-view modules
  • new module system: core, ext-latex, ext-strikethrough, ext-tables, ext-tasklist, html, image-gif, image-okhttp, image-svg, recycler, recycler-table, syntax-highlight
  • Add BufferType option for Markwon configuration
  • Fix typo in AsyncDrawable waitingForDimensions
  • New tests format
  • Markwon.render returns Spanned instance of generic CharSequence
  • LinkMovementMethod is applied implicitly if not set on a TextView explicitly
  • Split code and codeBlock spans and factories
  • Add CustomTypefaceSpan
  • Add NoCopySpansFactory
  • Add placeholder to image loading

Generally speaking there are a lot of changes. Most of them are not backwards-compatible.
The main point of this release is the Plugin system that allows more fluent configuration
and opens the possibility of extending Markwon with 3rd party functionality in a simple
and intuitive fashion. Please refer to the documentation web-site
that has information on how to start migration.

The shortest excerpt of this release can be expressed like this:

// previous v2.x.x way
Markwon.setMarkdown(textView, "**Hello there!**");
// 3.x.x
Markwon.create(context)
        .setMarkdown(textView, "**Hello there!**");

But there is much more to it, please visit documentation web-site
to get the full picture of latest changes.