markmv - v1.26.2
    Preparing search index...

    Interface LinkReference

    Represents a reference-style link definition.

    Reference links are defined separately from their usage (e.g., [1]: https://example.com) and can be referenced multiple times throughout the document.

    Working with reference links

    const references: LinkReference[] = parsedFile.references;

    references.forEach(ref => {
    console.log(`Reference [${ref.id}]: ${ref.url}`);
    if (ref.title) {
    console.log(` Title: ${ref.title}`);
    }
    });
    interface LinkReference {
        id: string;
        url: string;
        title: undefined | string;
        line: number;
    }
    Index

    Properties

    Properties

    id: string

    Reference ID

    url: string

    URL/path

    title: undefined | string

    Optional title

    line: number

    Line number where reference is defined