wdpr
    Preparing search index...
    • Determines whether a block rule is eligible for the current token.

      A rule is eligible if:

      1. The token is at line start (when rule.requiresLineStart is true).
      2. The token's type is in the rule's startTokens list (or the list is empty, meaning the rule is a universal fallback).

      Parameters

      • rule: BlockRule

        The block rule to check.

      • token: Token

        The current token.

      Returns boolean

      true if the rule may be attempted.