wdpr
    Preparing search index...

    Module parser/rules/inline/link-anchor

    Parses the Wikidot anchor link syntax: [#anchor-name Label text] and the "fake link" variant [# Label text].

    An anchor link creates a hyperlink that targets a named anchor on the same page. The link's href is set to #normalized-anchor-name.

    The "fake link" variant ([# Label]) has no anchor name and generates a link with href="javascript:;". This is used in Wikidot for interactive elements like collapsible blocks where the link serves as a click target rather than navigation.

    Anchor names are normalized to lowercase with spaces replaced by hyphens.

    The opening delimiter is tokenized as BRACKET_ANCHOR ([#) by the lexer, distinguishing it from regular bracket links.

    Produces a "link" AST element with type: "anchor".

    Variables

    linkAnchorRule