- add
MarkwonInlineParserPlugin
in inline-parser
module
JLatexMathPlugin
now supports inline LaTeX structures via MarkwonInlineParserPlugin
dependency (must be explicitly added to Markwon
whilst configuring)
JLatexMathPlugin
: add theme
(to customize both inlines and blocks)
- add
JLatexMathPlugin.ErrorHandler
to catch latex rendering errors and (optionally) display error drawable (#204)
JLatexMathPlugin
add text color customization (#207)
JLatexMathPlugin
will use text color of widget in which it is displayed if color is not set explicitly
- add
SoftBreakAddsNewLinePlugin
plugin (core
module)
LinkResolverDef
defaults to https
when a link does not have scheme information (#75)
- add
option
abstraction for sample
module allowing switching of multiple cases in runtime via menu
- non-empty bounds for
AsyncDrawable
when no dimensions are not yet available (#189)
linkify
- option to use LinkifyCompat
in LinkifyPlugin
(#201)
Thanks to @drakeet
MarkwonVisitor.BlockHandler
and BlockHandlerDef
implementation 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();