Prepare 4.6.0 release
This commit is contained in:
		
							parent
							
								
									63ed271133
								
							
						
					
					
						commit
						7002dbfb8d
					
				| @ -1,6 +1,6 @@ | ||||
| # Changelog | ||||
| 
 | ||||
| # SNAPSHOT | ||||
| # 4.6.0 | ||||
| 
 | ||||
| #### Added | ||||
| * `ext-tables` - `TableAwareMovementMethod` a special movement method to handle clicks inside tables ([#289]) | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
| @ -54,7 +54,7 @@ public abstract class DumpNodes { | ||||
|                         // 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"); | ||||
|  | ||||
| @ -5,7 +5,7 @@ import androidx.annotation.NonNull; | ||||
| import org.commonmark.node.Node; | ||||
| 
 | ||||
| /** | ||||
|  * @since $SNAPSHOT; | ||||
|  * @since 4.6.0 | ||||
|  */ | ||||
| public abstract class ParserUtils { | ||||
| 
 | ||||
|  | ||||
| @ -13,7 +13,7 @@ import android.widget.TextView; | ||||
| import androidx.annotation.NonNull; | ||||
| 
 | ||||
| /** | ||||
|  * @since $SNAPSHOT; | ||||
|  * @since 4.6.0 | ||||
|  */ | ||||
| public class TableAwareMovementMethod implements MovementMethod { | ||||
| 
 | ||||
|  | ||||
| @ -173,7 +173,7 @@ public class TableRowSpan extends ReplacementSpan { | ||||
| 
 | ||||
|         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 | ||||
| @ -268,7 +268,7 @@ public class TableRowSpan extends ReplacementSpan { | ||||
|                     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, | ||||
| @ -387,7 +387,7 @@ public class TableRowSpan extends ReplacementSpan { | ||||
|     /** | ||||
|      * Obtain Layout given horizontal offset. Primary usage target - MovementMethod | ||||
|      * | ||||
|      * @since $SNAPSHOT; | ||||
|      * @since 4.6.0 | ||||
|      */ | ||||
|     @Nullable | ||||
|     public Layout findLayoutForHorizontalOffset(int x) { | ||||
| @ -401,13 +401,13 @@ public class TableRowSpan extends ReplacementSpan { | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * @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); | ||||
|     } | ||||
|  | ||||
| @ -14,7 +14,7 @@ import java.util.regex.Pattern; | ||||
| 
 | ||||
| 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 { | ||||
| 
 | ||||
|  | ||||
| @ -266,7 +266,7 @@ public class MarkwonInlineParser implements InlineParser, MarkwonInlineParserCon | ||||
|         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; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dimitry Ivanov
						Dimitry Ivanov