Module mkdocs_common
Source - BytePositionTracker
- Utility for tracking byte positions through document lines
Reduces duplication of line-by-line byte position tracking logic
- ContextStateMachine
- State machine for tracking nested context boundaries
- MAX_COMPONENT_LENGTH
- Maximum reasonable length for individual path components
- MAX_REFERENCE_LENGTH
- Maximum reasonable length for references and identifiers
- MKDOCS_CONTENT_INDENT
- Standard indentation size for MkDocs content blocks
Most MkDocs features require content to be indented by 4 spaces
- MkDocsPattern
- Trait for MkDocs pattern detection implementations
All MkDocs features should implement this trait for consistency
- get_line_indent
- Extract indentation from a line (counts spaces and tabs)
- is_indented_content
- Check if a line is indented enough to be content
- should_check_mkdocs
- Check if we should process MkDocs patterns for the given flavor