Minor clean up
This commit is contained in:
		
							parent
							
								
									0fabf7daff
								
							
						
					
					
						commit
						4b2d38b92f
					
				| @ -19,6 +19,9 @@ features listed in [commonmark-spec] are supported | ||||
| (including support for **inlined/block HTML code**, **markdown tables**, | ||||
| **images** and **syntax highlight**). | ||||
| 
 | ||||
| Since version **4.2.0** **Markwon** comes with an [editor](./markwon-editor/) to _highlight_ markdown input | ||||
| as user types (for example in **EditText**). | ||||
| 
 | ||||
| [commonmark-spec]: https://spec.commonmark.org/0.28/ | ||||
| [commonmark-java]: https://github.com/atlassian/commonmark-java/blob/master/README.md | ||||
| 
 | ||||
|  | ||||
| @ -8,7 +8,7 @@ android.enableJetifier=true | ||||
| android.enableBuildCache=true | ||||
| android.buildCacheDir=build/pre-dex-cache | ||||
| 
 | ||||
| VERSION_NAME=4.1.3-SNAPSHOT | ||||
| VERSION_NAME=4.2.0-SNAPSHOT | ||||
| 
 | ||||
| GROUP=io.noties.markwon | ||||
| POM_DESCRIPTION=Markwon markdown for Android | ||||
|  | ||||
| @ -6,6 +6,9 @@ Main principle: _difference_ between input text and rendered markdown is conside | ||||
| _punctuation_. | ||||
| 
 | ||||
| 
 | ||||
| [https://noties.io/Markwon/docs/v4/editor/](https://noties.io/Markwon/docs/v4/editor/) | ||||
| 
 | ||||
| 
 | ||||
| ## Limitations | ||||
| 
 | ||||
| Tables and LaTeX nodes won't be rendered correctly. They will be treated as _punctuation_ | ||||
|  | ||||
| @ -272,7 +272,7 @@ public class EditorActivity extends Activity { | ||||
|                 final String text = editText.getText().subSequence(start, end).toString(); | ||||
|                 int index = text.indexOf('\n'); | ||||
|                 while (index != -1) { | ||||
|                     newLines.add(start + index); | ||||
|                     newLines.add(start + index + 1); | ||||
|                     index = text.indexOf('\n', index + 1); | ||||
|                 } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dimitry Ivanov
						Dimitry Ivanov