Module emphasis_utils

Module emphasis_utils 

Source

Structs§

EmphasisMarker
Represents an emphasis marker found in text
EmphasisSpan
Represents a complete emphasis span

Functions§

find_emphasis_markers
Optimized emphasis marker parsing using byte iteration
find_emphasis_spans
Optimized emphasis span finding with reduced complexity (includes both single and strong)
find_single_emphasis_spans
Find all emphasis spans in a line, excluding only single emphasis (not strong)
has_doc_patterns
Check if line has documentation patterns that should be preserved
is_likely_list_line
Check if a line should be treated as a list item vs emphasis
is_valid_emphasis_content_fast
Fast validation of emphasis content
is_valid_emphasis_span_fast
Fast validation of emphasis span context
replace_inline_code
Enhanced inline code replacement with optimized performance Replaces inline code with ‘X’ characters to prevent false positives in emphasis detection