MarkdownExtension
An extension to TextEditorState that provides markdown functionality. This separates markdown concerns from the core text editor functionality.
Constructors
Properties
Functions
Returns whether line is currently rendered as a blockquote.
Returns whether line is currently rendered as a bullet-list item.
Returns whether line is currently rendered as a fenced code line.
Returns whether line is currently rendered as an ordered-list item.
Adds blockquote rendering (left bar + indented text) to each line in lines that doesn't already have it; removes it from lines that do. Mixed selections enable on every line for predictable toolbar behavior.
Adds bullet-list rendering (gutter dot + hanging indent) to each line in lines that doesn't already have it; removes it from lines that do. Mixed selections enable on every line for predictable toolbar behavior.
Adds fenced-code rendering (monospace text + tinted card with a hairline border) to each line in lines that doesn't already have it; removes it from lines that do. Mixed selections enable on every line for predictable toolbar behavior. Code fences demote any blockquote/list on the same line — the four block styles can't coexist visually.
Adds ordered-list rendering (gutter numeral + hanging indent) to each line in lines that doesn't already have it; removes it from lines that do. Mixed selections enable on every line for predictable toolbar behavior. Numbering is recomputed automatically based on contiguous-run position.