pub fn serialize_at(doc: &Doc, at: Cursor, marks: &Marks) -> (String, usize)Expand description
The document as markdown, and where at landed in it.
Exact through markers, escapes and marks because it is the serializer: a sentinel goes in at the caret, the document is written, and where the sentinel came out is the answer. The string comes back without it.
The offset is the end of the output for a caret this cannot place — a document already carrying the sentinel, or a part that no longer exists.