Equation Citator v1.3.7 Documentation
    Preparing search index...

    Cache for parsed images in markdown files Stores image data including path, tag, title, and description

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cache: Map<string, CachedData<ImageMatch>> = ...
    forceUpdateTimeout: number
    isDestroyed: boolean = false
    maxCacheSize: number = 30
    plugin: default

    Methods

    • Get statistcs about the cache

      Returns { newestEntry?: number; oldestEntry?: number; size: number }

    • Find a specific image by its tag in a file

      Parameters

      • sourcePath: string

        Path to the file

      • tag: string

        The tag to search for (without prefix, e.g., "3.1" not "fig:3.1")

      Returns Promise<ImageMatch | undefined>

      The matched ImageMatch or undefined

    • Get images for a specific file

      Parameters

      • sourcePath: string

        Path to the file

      Returns Promise<ImageMatch[] | undefined>

      Array of ImageMatch objects