Skip to content

saveMarkdownText

saveMarkdownText(doc, file): string

The string to store for the editor's document. Unedited (doc equals file.text), it is the original string, exactly. Edited, it is doc with the original BOM put back and every line break written as file.ending — the same text saveMarkdownFile encodes.

string

The document to save, usually editor.getDoc().

MarkdownText

What openMarkdownText returned for this string.

string

The string to store.