diff --git a/CHANGELOG.md b/CHANGELOG.md index 047ae4d0..ca948871 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -100,7 +100,7 @@ use `Markwon#builderNoCore()` to obtain a builder without `CorePlugin` * 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`) +* `LinkResolver` is now an independent entity (previously part of the `LinkSpan`), `LinkSpan.Resolver` -> `LinkResolver` * `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`) diff --git a/docs/docs/v4/core/core-plugin.md b/docs/docs/v4/core/core-plugin.md index a5002ba8..7538ad1e 100644 --- a/docs/docs/v4/core/core-plugin.md +++ b/docs/docs/v4/core/core-plugin.md @@ -81,10 +81,15 @@ More information about props can be found [here](/docs/v4/core/render-props.md) --- :::tip Soft line break -Since <Badge text="3.0.0" /> Markwon core does not give an option to -insert a new line when there is a soft line break in markdown. Instead a -custom plugin can be used: +Since <Badge text="4.3.0" /> there is a dedicated plugin to insert a new line for +markdown soft breaks - `SoftBreakAddsNewLinePlugin`: +```java +final Markwon markwon = Markwon.builder(this) + .usePlugin(SoftBreakAddsNewLinePlugin.create()) + .build(); +``` +It is still possible to do it manually with a custom visitor: ```java final Markwon markwon = Markwon.builder(this) .usePlugin(new AbstractMarkwonPlugin() {