@wdprlib/ast
    Preparing search index...

    Interface GalleryItem

    A single : source link="..." alt="..." entry inside [[gallery]].

    interface GalleryItem {
        alt: string | null;
        link: string | null;
        newWindow: boolean;
        source: string;
    }
    Index

    Properties

    alt: string | null

    Alternative text for the image, or null when no alt attribute is given

    link: string | null

    Link target with any leading * removed, or null when the item has no link attribute.

    newWindow: boolean

    true if the link opens in a new window (* prefix on source or link)

    source: string

    Raw image source string with any leading * removed. Classification follows the Wikidot rules and happens at render time: a source containing :// is external, one containing / refers to another page's file, anything else is a file on the current page.