Expand description
Fast-path checks and early return utilities for rule implementations in rumdl. Provides helpers to quickly skip rules based on content analysis.
Structs§
- Content
Analysis - Comprehensive content analysis for rule filtering
Traits§
- Early
Returns - Trait for implementing early returns in rules
Functions§
- has_
blockquotes - Check if content has any blockquotes
- has_
code - Check if content has any code blocks or inline code
- has_
emphasis - Check if content has any emphasis markers
- has_
hard_ tabs - Check if content has hard tabs
- has_
headings - Check if content has any headings (ATX or Setext)
- has_
html - Check if content has any HTML tags
- has_
links_ or_ images - Check if content has any links or images
- has_
lists - Check if content has any list markers
- has_
long_ lines - Check if content has long lines (over threshold)
- has_
ordered_ lists - Check if content has ordered lists
- has_
setext_ headings - Check if content has Setext headings (underlines)
- has_
tables - Check if content has any tables
- has_
trailing_ spaces - Check if content has trailing spaces
- has_
urls - Early return utilities for performance optimization These functions provide fast content analysis to skip expensive processing Check if content has any URLs (http, https, ftp)
- should_
skip_ blockquote_ rule - Common early return checks for blockquote-related rules
- should_
skip_ code_ block_ rule - Common early return checks for code block related rules
- should_
skip_ emphasis_ rule - Common early return checks for emphasis-related rules
- should_
skip_ heading_ rule - Common early return checks for heading-related rules
- should_
skip_ html_ rule - Common early return checks for inline HTML rules
- should_
skip_ image_ rule - Common early return checks for image-related rules
- should_
skip_ link_ rule - Common early return checks for link-related rules
- should_
skip_ list_ rule - Common early return checks for list-related rules
- should_
skip_ whitespace_ rule - Common early return checks for whitespace-related rules