The styles that are denoted with an asterisk (*), when defined,
completely override the default spans. The others, when defined, add
spans before the default spans (if any) so that when reversed, take
precedence. Example:
```
<ru.noties.markwon.view.MarkwonViewCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:mv_H2Style="?android:textAppearanceLarge"
app:mv_markdown="## Opening hours" />
```
In the above case, as ?android:textAppearanceLarge most likely is
resolved into an actual style, the spans that are added by the Markwon-
library (including heading line break) will no be added.
```
<ru.noties.markwon.view.MarkwonViewCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:mv_CodeSpanStyle="?textAppearanceSmall"
app:mv_markdown="`private int count = 5`" />
```
Conversely, defining a style for mv_CodeSpanStyle will still result in
that background is added to the code text and it will by styled
according to the resolved style of `android:textAppearanceSmall`.
Supported style attributes:
*mv_H1Style
*mv_H2Style
*mv_H3Style
*mv_H4Style
*mv_H5Style
*mv_H6Style
*mv_EmphasisStyle
*mv_StrongEmphasisStyle
mv_BlockQuoteStyle
mv_CodeSpanStyle
mv_MultilineCodeSpanStyle
mv_OrderedListItemStyle
mv_BulletListItemStyle
mv_TaskListItemStyle
mv_TableRowStyle
mv_ParagraphStyle
mv_LinkStyle
Background:
The usage and maintaining of SpannableBuilder is reduced by using
a good-old-SpannableStringBuilder directly but making sure its spans are
reversed.
The implementation is credited Uncodin/bypass
* Update build configuration
* Update commonmark to 0.11.0 and android-gif to 1.2.14
* Add module `library-syntax`
* Add default prism4j theme implementation
* Add syntax highlight to sample app
* Update syntax highlight to use SpannableStringBuilder
* Working with syntax rendering
* Add darkula theme to syntax highlight
* Add attribute for image-loader module
* Update version to 1.1.0-SNAPSHOT
* Updating build configuration for snapshot publish
* Add headingTypeface, headingTextSizes to SpannableTheme (#51)
* Add headingTypeface to SpannableTheme, use a custom heading typeface in the sample app
* Add headingTextSizes
* Switching to headingTextSizeMultipliers, adding validating annotations, adding example
* Consolidate logic, add crash if header index is out of bounds
* Add small version clarifications
* Introduce MediaDecoder abstraction for image-loader module
* Switch to use SpannableFactory
* Switch to use SpannableFactory for html parsing
* Update sample application to add play-pause functionality for gifs
* Small cleanup
* Update prism4j version 1.1.0
* Update build configuration
* Add README to library-syntax module
* Update README
* Fix bullet list item size (depend on text size and not top-bottom arguments)
* Add SNAPSHOT publishing
* Add ability to specify MovementMethod when applying markdown to a TextView
* Add information about new method signature to README (Markwon.setText)
* Fix README links reference
* Add new section to README (applications using markwon)
* Markdown images size is also resolved via ImageSizeResolver
* Change LinkSpan to extend URLSpan. Allow default linkColor (if not set explicitly)
* Fit an image without dimensions to canvas width (and keep ratio)
* Add support for separate color for code blocks (#37)
* Initialized custom extension module
* Upgraded android gradle plugin to 3.0.1
* Shaping up the custom extension module
* Added README to module
* Small improvement for IconVisitor (added color null check)
* Added retention annotation for Alignment IntDef (#3)
* Task lists (#4)
* Added since annotation to newly added method/classes
* Fixed the indexes bug for margin spans (#6)
* Feature: Revert spans order (#11)
* SpannableBuilder
* Removed nullablity from Markwon class (no null markdown)
* Image sizes via HTML (#13)