crossnote
    Preparing search index...

    Class Notebook

    Index

    Properties

    hasLoadedNotes: boolean = false
    markdownYoRenderer: MarkdownRenderer | null = null

    Optional markdown_yo WASM renderer. Used for HTML rendering when markdownParser === 'markdown_yo'.

    md: MarkdownIt
    notebookPath: URI
    notes: Notes = {}
    referenceMap: ReferenceMap = ...

    Methods

    • Build markdown_yo render options from the current notebook config.

      Parameters

      • isForPreview: boolean

      Returns RenderOptions

    • Parameters

      • filePath: string
      • alreadyDeleted: boolean = false

      Returns Promise<void>

    • Parameters

      • filePath: string

      Returns Promise<Notes>

    • Parameters

      • filePath: string
      • refreshNoteRelations: boolean = false

      Returns Promise<Note | null>

    • Parameters

      • noteFilePath: string
      • backlinkedNoteFilePath: string

      Returns Promise<Reference[]>

    • Parameters

      • filePath: string

      Returns Promise<void>

    • Process wiki link

      Parameters

      • content: string

        content is string like "Test", "test.md | Test"

      Returns { link: string; text: string }

    • Parameters

      • args: RefreshNotesArgs

      Returns Promise<Notes>

    • Parameters

      • __namedParameters: RefreshNotesIfNotLoaded

      Returns Promise<Notes>

    • Parameters

      • filePath: string

      Returns Promise<void>

    • Render markdown to HTML using markdown_yo (WASM) if available, otherwise falls back to markdown-it.

      Parameters

      • markdown: string
      • Optionaloptions: { isForPreview?: boolean }

      Returns string

    • Get the absolute path of the note

      Parameters

      • filePath: string

      Returns string

    • Get the relative path of the note to the notebook directory

      Parameters

      • filePath: string

      Returns string