Class Notebook

Constructors

Properties

hasLoadedNotes: boolean = false
markdownEngines: {
    [key: FilePath]: MarkdownEngine;
} = {}

Markdown engines for each note key is the relative path of the note

Type declaration

md: MarkdownIt
notebookPath: URI
notes: Notes = {}
referenceMap: ReferenceMap = ...
refreshNotesIfNotLoadedMutex: Mutex = ...
search: default = ...

Methods

  • Parameters

    • filePath: string
    • alreadyDeleted: boolean = false

    Returns Promise<void>

  • Parameters

    • filePath: string

    Returns Promise<Notes>

  • Parameters

    • filePath: string
    • refreshNoteRelations: boolean = false

    Returns Promise<null | Note>

  • Parameters

    • noteFilePath: string
    • backlinkedNoteFilePath: string

    Returns Promise<Reference[]>

  • Parameters

    • __namedParameters: NotebookConstructorArgs

    Returns Promise<void>

  • 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;
    }

    • link: string
    • text: string
  • Parameters

    • __namedParameters: RefreshNotesArgs

    Returns Promise<Notes>

  • Parameters

    • __namedParameters: RefreshNotesIfNotLoaded

    Returns Promise<Notes>

  • Parameters

    • filePath: string

    Returns Promise<void>

  • 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

Generated using TypeDoc