Rich text / foldkit-richtext-markdown

closeSource

function · packages/richtext-markdown/src/source.ts:88

function closeSource(
  session: SourceSession,
  document: RichText.Document,
  options: ParseOptions,
): ClosedSource

Ends a session against the document the caller holds. A pure read, so it also serves as a preview of the draft: nothing is committed until the caller puts document in its Model.