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) { ... }

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

The number of columns before text wraps to the next line.

Link copied to clipboard

Highlights for each type of emphasis. The key is one of bold, boldItalic, italic and code.

Link copied to clipboard

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.

Link copied to clipboard

By default, heading 3 and beyond do NOT include a blank line between the heading and the following text.