wdpr
    Preparing search index...
    • Parses HTML-style attributes from block opening tags.

      Supports:

      • name="value" (quoted string)
      • name=value (unquoted single-token value)
      • name (boolean attribute, stored as "true")
      • Hyphenated names like data-paragraph or aria-label (composed from TEXT - IDENTIFIER token sequences).

      Attribute names are lowercased (Wikidot is case-insensitive). The result is filtered through filterUnsafeAttributes to strip potentially dangerous attributes (e.g. onload, onclick).

      Stops at BLOCK_CLOSE, NEWLINE, or EOF.

      Parameters

      • ctx: ParseContext

        Parse context.

      • startPos: number

        Token index to begin scanning.

      Returns { attrs: Record<string, string>; consumed: number }

      Parsed (filtered) attributes and total tokens consumed.