Skip to content

Commit

Permalink
Prepare 4.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
noties committed Nov 15, 2019
1 parent 00d60e2 commit 3917705
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

# 4.2.0-SNAPSHOT
# 4.2.0
* `MarkwonEditor` to highlight markdown input whilst editing (new module: `markwon-editor`)
* `CoilImagesPlugin` image loader based on [Coil] library (new module: `markwon-image-coil`) ([#166], [#174])
<br>Thanks to [@tylerbwong]
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.2.0-SNAPSHOT
VERSION_NAME=4.2.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 @@ -79,7 +79,7 @@ public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int ba
}

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public int getLevel() {
return level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void updateDrawState(@NonNull TextPaint ds) {
}

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
@NonNull
public String getLink() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @see EditHandler
* @see io.noties.markwon.editor.handler.EmphasisEditHandler
* @see io.noties.markwon.editor.handler.StrongEmphasisEditHandler
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class AbstractEditHandler<T> implements EditHandler<T> {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* @see EmphasisEditHandler
* @see StrongEmphasisEditHandler
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public interface EditHandler<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @see #create(Markwon)
* @see #process(Editable)
* @see #preRender(Editable, PreRenderResultListener)
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class MarkwonEditor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @see MarkwonEditor#preRender(Editable, MarkwonEditor.PreRenderResultListener)
* @see #withProcess(MarkwonEditor)
* @see #withPreRender(MarkwonEditor, ExecutorService, EditText)
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class MarkwonEditorTextWatcher implements TextWatcher {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.util.Map;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class MarkwonEditorUtils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @see EditHandler#handleMarkdownSpan(PersistedSpans, Editable, String, Object, int, int)
* @see EditHandler#configurePersistedSpans(Builder)
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class PersistedSpans {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.noties.markwon.editor.PersistedSpans;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class EmphasisEditHandler extends AbstractEditHandler<EmphasisSpan> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.noties.markwon.editor.PersistedSpans;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class StrongEmphasisEditHandler extends AbstractEditHandler<StrongEmphasisSpan> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/**
* @author Tyler Wong
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class CoilImagesPlugin extends AbstractMarkwonPlugin {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.noties.markwon.image.MediaDecoder;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class SvgPictureMediaDecoder extends MediaDecoder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Parses autolinks, for example {@code <[email protected]>}
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class AutolinkInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.regex.Pattern;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class BackslashInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Parses inline code surrounded with {@code `} chars {@code `code`}
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class BackticksInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Parses markdown images {@code ![alt](#href)}
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class BangInlineProcessor extends InlineProcessor {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Parses markdown link or image, relies on {@link OpenBracketInlineProcessor}
* to handle start of these elements
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class CloseBracketInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Parses HTML entities {@code &amp;}
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class EntityInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Parses inline HTML tags
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class HtmlInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.commonmark.node.Text;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class InlineParserUtils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @see OpenBracketInlineProcessor
* @see MarkwonInlineParser.FactoryBuilder#addInlineProcessor(InlineProcessor)
* @see MarkwonInlineParser.FactoryBuilder#excludeInlineProcessor(Class)
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public abstract class InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @see #factoryBuilder()
* @see #factoryBuilderNoDefaults()
* @see FactoryBuilder
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class MarkwonInlineParser implements InlineParser, MarkwonInlineParserContext {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.util.regex.Pattern;

/**
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class NewLineInlineProcessor extends InlineProcessor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Parses markdown links {@code [link](#href)}
*
* @since 4.2.0-SNAPSHOT
* @since 4.2.0
*/
public class OpenBracketInlineProcessor extends InlineProcessor {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ private static class LinkifyTextAddedListener implements CorePlugin.OnTextAddedL
@Override
public void onTextAdded(@NonNull MarkwonVisitor visitor, @NonNull String text, int start) {

// @since 4.2.0-SNAPSHOT obtain span factory for links
// @since 4.2.0 obtain span factory for links
// we will be using the link that is used by markdown (instead of directly applying URLSpan)
final SpanFactory spanFactory = visitor.configuration().spansFactory().get(Link.class);
if (spanFactory == null) {
return;
}

// @since 4.2.0-SNAPSHOT we no longer re-use builder (thread safety achieved for
// @since 4.2.0 we no longer re-use builder (thread safety achieved for
// render calls from different threads and ... better performance)
final SpannableStringBuilder builder = new SpannableStringBuilder(text);

Expand Down

0 comments on commit 3917705

Please sign in to comment.