You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serializeMarkdown and serializeCommonMark throw an EncreDocumentError, exported, when the
document is invalid. It extends Error with the same message as before, and carries path, the
tree path of the failing node, and blockId, the id of that node or of the nearest block around
it that has one.
Editor methods revealPath(path) and revealBlock(blockId) select a node and scroll to it, so
an app can jump to the spot an EncreDocumentError names. A textblock's text is selected.
Editor.exportMarkdown and exportCommonMark hand an EncreDocumentError to onerror before
they reject with it.
A markdown paste that parseMarkdown refuses still lands as literal text, and the editor now
hands the EncreMarkdownError (line, column, path) to onerror.