@wdprlib/parser
    Preparing search index...

    Block rule interface.

    interface BlockRule {
        name: string;
        preservesPrecedingLineBreak?: boolean;
        requiresLineStart: boolean;
        startTokens: TokenType[];
        isStartPattern?(ctx: ParseContext, pos: number): boolean;
        parse(ctx: ParseContext): RuleResult<Element>;
    }
    Index

    Properties

    name: string

    Rule name for debugging.

    preservesPrecedingLineBreak?: boolean

    When true, a single newline before this block becomes a line-break.

    requiresLineStart: boolean

    Whether this rule requires line start.

    startTokens: TokenType[]

    Token types that can start this rule.

    Methods