ClosedSource.document
property · packages/richtext-markdown/src/source.ts:64
readonly document: RichText.DocumentThe document to continue with: the caller's own when the draft was not edited.
Rich text / foldkit-richtext-markdown
interface · packages/richtext-markdown/src/source.ts:62
interface ClosedSource {
readonly document: RichText.Document
readonly changed: boolean
readonly diagnostics: ReadonlyArray<MarkdownDiagnostic>
readonly style: MarkdownStyle
readonly selection: RichText.Selection | null
}ClosedSource.documentproperty · packages/richtext-markdown/src/source.ts:64
readonly document: RichText.DocumentThe document to continue with: the caller's own when the draft was not edited.
ClosedSource.changedproperty · packages/richtext-markdown/src/source.ts:66
readonly changed: booleanWhether the draft was edited, and so whether document is new.
ClosedSource.diagnosticsproperty · packages/richtext-markdown/src/source.ts:68
readonly diagnostics: ReadonlyArray<MarkdownDiagnostic>What the document loses by the edit: the unprintable, then what parsing reported.
ClosedSource.styleproperty · packages/richtext-markdown/src/source.ts:73
readonly style: MarkdownStyleThe spellings to open the next session with: what the edited draft used, over what the session opened with, so a construct the draft no longer contains keeps its spelling.
ClosedSource.selectionproperty · packages/richtext-markdown/src/source.ts:78
readonly selection: RichText.Selection | nullThe session's caret in document, as a caret selection; null when the draft holds no
text to put it in, or when an unedited draft does not line up with the caller's document.