Update CHANGELOG for upcoming 4.3.0 version
This commit is contained in:
		
							parent
							
								
									8da8a37178
								
							
						
					
					
						commit
						cc35c35581
					
				
							
								
								
									
										11
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @ -1,7 +1,18 @@ | ||||
| # Changelog | ||||
| 
 | ||||
| # 4.3.0-SNAPSHOT | ||||
| * add `MarkwonInlineParserPlugin` in `inline-parser` module | ||||
| * `JLatexMathPlugin` now supports both inline and block structures | ||||
| 
 | ||||
|   this comes with a breaking change: `JLatexMathPlugin` now depends on `inline-parser` module and `MarkwonInlineParserPlugin` must be explicitly added to a `Markwon` instance: | ||||
|   ```java | ||||
|   final Markwon markwon = Markwon.builder(this) | ||||
|         .usePlugin(MarkwonInlineParserPlugin.create()) | ||||
|         .usePlugin(JLatexMathPlugin.create(textSize)) | ||||
|         .build(); | ||||
|   ``` | ||||
| * `JLatexMathPlugin`: add `theme` (to customize both inlines and blocks) | ||||
| * `JLatexMathPlugin`: add `renderMode` to use previous (pre `4.3.0`) LaTeX rendering | ||||
| 
 | ||||
| # 4.2.2 | ||||
| * Fixed `AsyncDrawable` display when it has placeholder with empty bounds ([#189]) | ||||
|  | ||||
| @ -15,7 +15,7 @@ import org.commonmark.parser.block.ParserState; | ||||
|  * @since 4.3.0-SNAPSHOT (although there was a class with the same name, | ||||
|  * which is renamed now to {@link JLatexMathBlockParserLegacy}) | ||||
|  */ | ||||
| public class JLatexMathBlockParser extends AbstractBlockParser { | ||||
| class JLatexMathBlockParser extends AbstractBlockParser { | ||||
| 
 | ||||
|     private static final char DOLLAR = '$'; | ||||
|     private static final char SPACE = ' '; | ||||
|  | ||||
| @ -11,7 +11,7 @@ import org.commonmark.parser.block.ParserState; | ||||
| /** | ||||
|  * @since 4.3.0-SNAPSHOT (although it is just renamed parser from previous versions) | ||||
|  */ | ||||
| public class JLatexMathBlockParserLegacy extends AbstractBlockParser { | ||||
| class JLatexMathBlockParserLegacy extends AbstractBlockParser { | ||||
| 
 | ||||
|     private final JLatexMathBlock block = new JLatexMathBlock(); | ||||
| 
 | ||||
|  | ||||
| @ -11,7 +11,7 @@ import io.noties.markwon.inlineparser.InlineProcessor; | ||||
| /** | ||||
|  * @since 4.3.0-SNAPSHOT | ||||
|  */ | ||||
| public class JLatexMathInlineProcessor extends InlineProcessor { | ||||
| class JLatexMathInlineProcessor extends InlineProcessor { | ||||
| 
 | ||||
|     private static final Pattern RE = Pattern.compile("(\\${2})([\\s\\S]+?)\\1"); | ||||
| 
 | ||||
|  | ||||
| @ -127,7 +127,7 @@ public class LatexActivity extends ActivityWithMenuOptions { | ||||
|         final float textSize = textView.getTextSize(); | ||||
|         final Resources r = getResources(); | ||||
| 
 | ||||
|         final Markwon markwon = Markwon.builder(this) | ||||
| final Markwon markwon = Markwon.builder(this) | ||||
|         // NB! `MarkwonInlineParserPlugin` is required in order to parse inlines | ||||
|         .usePlugin(MarkwonInlineParserPlugin.create()) | ||||
|         .usePlugin(JLatexMathPlugin.create(textSize, textSize * 1.25F, builder -> { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dimitry Ivanov
						Dimitry Ivanov