Update after merging 270 PR

This commit is contained in:
Dimitry Ivanov 2020-07-29 12:00:11 +03:00
parent 6ec7132273
commit aafbd8585c
4 changed files with 11 additions and 3 deletions
CHANGELOG.md
app-sample
docs/docs/v4/core
markwon-core/src/main/java/io/noties/markwon/core

@ -5,6 +5,7 @@
#### Added #### Added
* `core` - `MovementMethodPlugin.none()`, `MovementMethodPlugin.link()` factory methods * `core` - `MovementMethodPlugin.none()`, `MovementMethodPlugin.link()` factory methods
* `core` - `CorePlugin` `hasExplicitMovementMethod` configuration method to **not** add implicit `LinkMovementMethod` in `afterSetText` * `core` - `CorePlugin` `hasExplicitMovementMethod` configuration method to **not** add implicit `LinkMovementMethod` in `afterSetText`
* `core` - `MarkwonTheme` `isLinkedUnderlined` attribute for links([#270])<br>Thanks to [@dallasgutauckis]
* `ext-latex` - `JLatexMathTheme.Padding.of(int,int,int,int)` factory method * `ext-latex` - `JLatexMathTheme.Padding.of(int,int,int,int)` factory method
* `app-sample` - example application * `app-sample` - example application
@ -28,6 +29,9 @@
[#235]: https://github.com/noties/Markwon/issues/235 [#235]: https://github.com/noties/Markwon/issues/235
[#241]: https://github.com/noties/Markwon/issues/241 [#241]: https://github.com/noties/Markwon/issues/241
[#259]: https://github.com/noties/Markwon/issues/259 [#259]: https://github.com/noties/Markwon/issues/259
[#270]: https://github.com/noties/Markwon/pull/270
[@dallasgutauckis]: https://github.com/dallasgutauckis
# 4.4.0 # 4.4.0

@ -96,7 +96,7 @@ android {
} }
} }
} else { } else {
// it seems to be a bug in NDK handling, github fail to build the project withe the: // it seems to be a bug in NDK handling, github fail to build the project with the:
// `com.android.builder.errors.EvalIssueException: No version of NDK matched the requested version 21.0.6113669. Versions available locally: 21.3.6528147` // `com.android.builder.errors.EvalIssueException: No version of NDK matched the requested version 21.0.6113669. Versions available locally: 21.3.6528147`
ndkVersion '21.3.6528147' ndkVersion '21.3.6528147'
} }

@ -27,6 +27,10 @@ Controls the color of a [link](#)
<sup>*</sup> `TextPaint#linkColor` will be used to determine linkColor of a context <sup>*</sup> `TextPaint#linkColor` will be used to determine linkColor of a context
## Link underline <Badge text="4.5.0" />
<ThemeProperty name="isLinkUnderlined" type="Boolean" defaults="true" />
## Block margin ## Block margin
Starting margin before text content for the: Starting margin before text content for the:

@ -118,7 +118,7 @@ public class MarkwonTheme {
protected final int linkColor; protected final int linkColor;
// specifies whether we underline links, by default is true // specifies whether we underline links, by default is true
// @since 4.4.1 // @since $SNAPSHOT;
protected final boolean isLinkedUnderlined; protected final boolean isLinkedUnderlined;
// used in quote, lists // used in quote, lists
@ -462,7 +462,7 @@ public class MarkwonTheme {
public static class Builder { public static class Builder {
private int linkColor; private int linkColor;
private boolean isLinkUnderlined = true; // @since 4.4.1 private boolean isLinkUnderlined = true; // @since $SNAPSHOT;
private int blockMargin; private int blockMargin;
private int blockQuoteWidth; private int blockQuoteWidth;
private int blockQuoteColor; private int blockQuoteColor;