Prepare 4.6.0 release

This commit is contained in:
Dimitry Ivanov 2020-09-18 23:55:54 +03:00
parent 63ed271133
commit 7002dbfb8d
8 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
# Changelog # Changelog
# SNAPSHOT # 4.6.0
#### Added #### Added
* `ext-tables` - `TableAwareMovementMethod` a special movement method to handle clicks inside tables ([#289]) * `ext-tables` - `TableAwareMovementMethod` a special movement method to handle clicks inside tables ([#289])

View File

@ -8,7 +8,7 @@ android.enableJetifier=true
android.enableBuildCache=true android.enableBuildCache=true
android.buildCacheDir=build/pre-dex-cache android.buildCacheDir=build/pre-dex-cache
VERSION_NAME=4.5.2-SNAPSHOT VERSION_NAME=4.6.0
GROUP=io.noties.markwon GROUP=io.noties.markwon
POM_DESCRIPTION=Markwon markdown for Android POM_DESCRIPTION=Markwon markdown for Android

View File

@ -54,7 +54,7 @@ public abstract class DumpNodes {
// node info // node info
builder.append(processor.process(argument)); builder.append(processor.process(argument));
// @since $SNAPSHOT; check for first child instead of casting to Block // @since 4.6.0 check for first child instead of casting to Block
// (regular nodes can contain other nodes, for example Text) // (regular nodes can contain other nodes, for example Text)
if (argument.getFirstChild() != null) { if (argument.getFirstChild() != null) {
builder.append(" [\n"); builder.append(" [\n");

View File

@ -5,7 +5,7 @@ import androidx.annotation.NonNull;
import org.commonmark.node.Node; import org.commonmark.node.Node;
/** /**
* @since $SNAPSHOT; * @since 4.6.0
*/ */
public abstract class ParserUtils { public abstract class ParserUtils {

View File

@ -13,7 +13,7 @@ import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
/** /**
* @since $SNAPSHOT; * @since 4.6.0
*/ */
public class TableAwareMovementMethod implements MovementMethod { public class TableAwareMovementMethod implements MovementMethod {

View File

@ -173,7 +173,7 @@ public class TableRowSpan extends ReplacementSpan {
final int w = cellWidth(size); final int w = cellWidth(size);
// @since $SNAPSHOT; roundingDiff to offset last vertical border // @since 4.6.0 roundingDiff to offset last vertical border
final int roundingDiff = w - (width / size); final int roundingDiff = w - (width / size);
// @since 1.1.1 // @since 1.1.1
@ -268,7 +268,7 @@ public class TableRowSpan extends ReplacementSpan {
canvas.drawRect(rect, paint); canvas.drawRect(rect, paint);
if (i == (size - 1)) { if (i == (size - 1)) {
// @since $SNAPSHOT; subtract rounding offset for the last vertical divider // @since 4.6.0 subtract rounding offset for the last vertical divider
rect.set( rect.set(
w - borderWidth - roundingDiff, w - borderWidth - roundingDiff,
borderTop, borderTop,
@ -387,7 +387,7 @@ public class TableRowSpan extends ReplacementSpan {
/** /**
* Obtain Layout given horizontal offset. Primary usage target - MovementMethod * Obtain Layout given horizontal offset. Primary usage target - MovementMethod
* *
* @since $SNAPSHOT; * @since 4.6.0
*/ */
@Nullable @Nullable
public Layout findLayoutForHorizontalOffset(int x) { public Layout findLayoutForHorizontalOffset(int x) {
@ -401,13 +401,13 @@ public class TableRowSpan extends ReplacementSpan {
} }
/** /**
* @since $SNAPSHOT; * @since 4.6.0
*/ */
public int cellWidth() { public int cellWidth() {
return cellWidth(layouts.size()); return cellWidth(layouts.size());
} }
// @since $SNAPSHOT; // @since 4.6.0
protected int cellWidth(int size) { protected int cellWidth(int size) {
return (int) (1F * width / size + 0.5F); return (int) (1F * width / size + 0.5F);
} }

View File

@ -14,7 +14,7 @@ import java.util.regex.Pattern;
import io.noties.markwon.utils.ParserUtils; import io.noties.markwon.utils.ParserUtils;
// @since $SNAPSHOT; // @since 4.6.0
// Hint taken from commonmark-ext-task-list-items artifact // Hint taken from commonmark-ext-task-list-items artifact
class TaskListPostProcessor implements PostProcessor { class TaskListPostProcessor implements PostProcessor {

View File

@ -266,7 +266,7 @@ public class MarkwonInlineParser implements InlineParser, MarkwonInlineParserCon
final List<InlineProcessor> inlines = this.inlineProcessors.get(c); final List<InlineProcessor> inlines = this.inlineProcessors.get(c);
if (inlines != null) { if (inlines != null) {
// @since $SNAPSHOT; index must not be advanced if inline-processor returned null // @since 4.6.0 index must not be advanced if inline-processor returned null
// so, further processors can be called at the _same_ position (and thus char) // so, further processors can be called at the _same_ position (and thus char)
final int startIndex = index; final int startIndex = index;