Trevixal API
    Preparing search index...

    @trevixal/extension-workspace. A document store with folders, templates, recents and favorites; a tab strip that switches the editor between documents and autosaves; a workspace sidebar; and a split view with a live preview or a mirrored second editor.

    • A title from a document body: the first heading's text, else the first sixty characters of prose, else "Untitled". Lives here rather than in the templates module so the store has no dependency on the schema.

      Parameters

      • doc: NodeJSON
      • untitled: string = 'Untitled'

      Returns string