
* Add `html-parser-api` and `html-parser-impl` modules * Add `HtmlEmptyTagReplacement` * Implement Appendable and CharSequence in SpannableBuilder * Renamed library modules to reflect maven artifact names * Rename `markwon-syntax` to `markwon-syntax-highlight` * Add HtmlRenderer asbtraction * Add CssInlineStyleParser * Fix Theme#listItemColor and OL * Fix task list block parser to revert parsing state when line is not matching * Defined test format files * image-loader add datauri parser * image-loader add support for inline data uri image references * Add travis configuration * Fix image with width greater than canvas scaled * Fix blockquote span * Dealing with white spaces at the end of a document * image-loader add SchemeHandler abstraction * Add sample-latex-math module
5.5 KiB
Theme
Here is the list of properties that can be configured via SpannableTheme#builder
factory
method. If you wish to control what is out of this list, you can use SpannableFactory
abstraction which lets you to gather full control of Spans that are used to display markdown.
- factory methods
Link color
Controls the color of a link
* TextPaint#linkColor
will be used to determine linkColor of a context
Block margin
Starting margin before text content for the:
- lists
- blockquotes
- task lists
Block quote
Customizations for the blockquote
stripe
Quote
Stripe width
Width of a blockquote stripe
Stripe color
Color of a blockquote stripe
List
List item color
Controls the color of a list item. For ordered list: leading number, for unordered list: bullet.
- UL
- OL
Bullet item stroke width
Border width of a bullet list item (level 2)
- First
-
- Second
-
-
- Third
-
Bullet width
The width of the bullet item
- First
- Second
- Third
- Second
Code
Inline code text color
The color of the code
content
Inline code background color
The color of background
of a code content
Block code text color
The color of code block text
Block code background color
The color of background of code block text
Block code leading margin
Leading margin for the block code content
Code typeface
Typeface of code content
Code text size
Text size of code content
Heading
Break height
The height of a brake under H1 & H2
Break color
The color of a brake under H1 & H2
Typeface
The typeface of heading elements
Text size
Array of heading text sizes ratio that is applied to text size
Script ratio
Ratio to be applied for sup
(super script) & sub
(sub script)
Thematic break
Color
Color of a thematic break
Height
Height of a thematic break
Table
Cell padding
Padding inside a table cell
Border color
The color of table borders
Border width
The width of table borders
Odd row background
Background of an odd table row
Even row background
Background of an even table row
Header row background
Background of header table row
Task list drawable
Drawable of task list item