wdpr
    Preparing search index...

    Module parser/rules/inline/user

    Parses the Wikidot user reference syntax: [[user name]] and [[*user name]].

    A user reference displays a linked username (typically linking to the user's profile page). The variant with a star prefix ([[*user]]) also displays the user's avatar alongside the username.

    Wikidot syntax:

    • [[user some-user]] -- displays username as a link
    • [[*user some-user]] -- displays avatar and username

    Note: Wikidot requires no whitespace immediately after [[. This means [[ user name]] is invalid, but [[user name]] and [[*user name]] are valid.

    The username may contain any characters except ]] and newlines. Leading/trailing whitespace around the username is trimmed.

    Produces a "user" AST element with data.name (the username) and data["show-avatar"] (boolean).

    Variables

    userRule