Module

lexer.modes

Lexer operating modes and constants.

This module defines the finite state machine modes for the lexer and constant sets used for HTML block classification.

Classes

LexerMode 0
Lexer operating modes. The lexer switches between modes based on context: - BLOCK: Between blocks,…

Lexer operating modes.

The lexer switches between modes based on context:

  • BLOCK: Between blocks, scanning for block starts
  • CODE_FENCE: Inside fenced code block
  • DIRECTIVE: Inside directive block
  • HTML_BLOCK: Inside HTML block (types 1-7)