Skip to content

Commit

Permalink
Prepare 4.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
noties committed Sep 18, 2020
1 parent 63ed271 commit 7002dbf
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

# SNAPSHOT
# 4.6.0

#### Added
* `ext-tables` - `TableAwareMovementMethod` a special movement method to handle clicks inside tables ([#289])
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android.enableJetifier=true
android.enableBuildCache=true
android.buildCacheDir=build/pre-dex-cache

VERSION_NAME=4.5.2-SNAPSHOT
VERSION_NAME=4.6.0

GROUP=io.noties.markwon
POM_DESCRIPTION=Markwon markdown for Android
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Object invoke(Object proxy, Method method, Object[] args) {
// node info
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)
if (argument.getFirstChild() != null) {
builder.append(" [\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.commonmark.node.Node;

/**
* @since $SNAPSHOT;
* @since 4.6.0
*/
public abstract class ParserUtils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import androidx.annotation.NonNull;

/**
* @since $SNAPSHOT;
* @since 4.6.0
*/
public class TableAwareMovementMethod implements MovementMethod {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void draw(

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);

// @since 1.1.1
Expand Down Expand Up @@ -268,7 +268,7 @@ public void draw(
canvas.drawRect(rect, paint);

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(
w - borderWidth - roundingDiff,
borderTop,
Expand Down Expand Up @@ -387,7 +387,7 @@ public void invalidateDrawable(@NonNull Drawable who) {
/**
* Obtain Layout given horizontal offset. Primary usage target - MovementMethod
*
* @since $SNAPSHOT;
* @since 4.6.0
*/
@Nullable
public Layout findLayoutForHorizontalOffset(int x) {
Expand All @@ -401,13 +401,13 @@ public Layout findLayoutForHorizontalOffset(int x) {
}

/**
* @since $SNAPSHOT;
* @since 4.6.0
*/
public int cellWidth() {
return cellWidth(layouts.size());
}

// @since $SNAPSHOT;
// @since 4.6.0
protected int cellWidth(int size) {
return (int) (1F * width / size + 0.5F);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import io.noties.markwon.utils.ParserUtils;

// @since $SNAPSHOT;
// @since 4.6.0
// Hint taken from commonmark-ext-task-list-items artifact
class TaskListPostProcessor implements PostProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ private Node parseInline() {
final List<InlineProcessor> inlines = this.inlineProcessors.get(c);

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)
final int startIndex = index;

Expand Down

0 comments on commit 7002dbf

Please sign in to comment.