MarkdownToStyledConfig
Configuration options for markdownToStyled.
Everything apart from columns rarely need to be changed.
To change the styled applied to text, there are two ways : 1 Modify headingHighlights, emphasisHighlights and the highlights in blockQuoteIndentation 2 Create a new Theme
, and redefined the styles ".heading1" etc.
See the source code of Tantalum
->STYLED_TEXT_AREA
->descendant(CONTAINER)
->child(TEXT)
{ ... }
Properties
The indentHighlight
uses an OverlappingBorder
, and therefore prefix
can be just whitespace. This indent uses fill=true
, so that the entire block has a background color. Without fill=true
, the background color would have a jagged right edge.
Highlights for each type of emphasis. The key is one of bold
, boldItalic
, italic
and code
.
Highlights for headings. If the document has a heading level greater than the size of this list, then the last entry is used. e.g. the default list has 4 entries, so a level-5 heading will appear the same as a level-4 heading.
By default, heading 3 and beyond do NOT include a blank line between the heading and the following text.