MarkdownConfiguration

data class MarkdownConfiguration(val highlightSyntax: HighlightSyntax = HighlightSyntax.DOUBLE_EQUALS, val paragraphSeparator: ParagraphSeparator = ParagraphSeparator.BLANK_LINE)(source)

The markdown syntax choices: which of the forms CommonMark leaves open a document is written in. The styles the document is rendered and recognised with are the editor's RichTextStyles, on TextEditorState.richTextStyles.

Styles CommonMark has no syntax for take the de facto forms: underline is <u> (what Obsidian and Typora write, and what every renderer shows), highlight is highlightSyntax, and a colour or a font size other than the body text's is an inline <span style="...">.

Constructors

Link copied to clipboard
constructor(highlightSyntax: HighlightSyntax = HighlightSyntax.DOUBLE_EQUALS, paragraphSeparator: ParagraphSeparator = ParagraphSeparator.BLANK_LINE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard