Expand description
Inline-level parser modules. Inline parser modules - convert grammar output to AST nodes
This module contains specialized parsers that convert inline grammar elements (from grammar/inlines) into AST nodes with proper position tracking.
Phase 5: Inline parser module extraction
Re-exports§
pub use cm_autolink_parser::parse_autolink;pub use cm_backslash_escape_parser::parse_backslash_escape;pub use cm_code_span_parser::parse_code_span;pub use cm_emphasis_parser::parse_emphasis;pub use cm_entity_reference_parser::parse_entity_reference;pub use cm_image_parser::parse_image;pub use cm_inline_html_parser::parse_inline_html;pub use cm_line_breaks_parser::parse_hard_line_break;pub use cm_line_breaks_parser::parse_soft_line_break;pub use cm_link_parser::parse_link;pub use cm_reference_link_parser::parse_reference_link;pub use cm_strong_emphasis_parser::parse_strong_emphasis;pub use cm_strong_parser::parse_strong;pub use gfm_autolink_literal_parser::parse_gfm_autolink_literal;pub use gfm_footnote_reference_parser::parse_footnote_reference;pub use gfm_strikethrough_parser::parse_strikethrough;pub use marco_dash_strikethrough_parser::parse_dash_strikethrough;pub use marco_emoji_shortcode_parser::parse_emoji_shortcode;pub use marco_inline_footnote_parser::parse_inline_footnote;pub use marco_mark_parser::parse_mark;pub use marco_platform_mentions_parser::parse_platform_mention;pub use marco_subscript_arrow_parser::parse_subscript_arrow;pub use marco_subscript_parser::parse_subscript;pub use marco_superscript_parser::parse_superscript;pub use marco_task_checkbox_inline_parser::parse_task_checkbox_inline;pub use math_display_parser::parse_display_math;pub use math_inline_parser::parse_inline_math;pub use text_parser::parse_special_as_text;pub use text_parser::parse_text;
Modules§
- cm_
autolink_ parser - Autolink parser - convert grammar autolinks to AST nodes
- cm_
backslash_ escape_ parser - Backslash escape parser - convert grammar escapes to AST nodes
- cm_
code_ span_ parser - Code span parser - convert grammar code spans to AST nodes
- cm_
emphasis_ parser - Emphasis parser - convert grammar emphasis to AST nodes
- cm_
entity_ reference_ parser - Entity reference parser - decode HTML entities into Unicode text
- cm_
image_ parser - Image parser - convert grammar images to AST nodes
- cm_
inline_ html_ parser - Inline HTML parser - convert grammar inline HTML to AST nodes
- cm_
line_ breaks_ parser - Line breaks parser - convert grammar line breaks to AST nodes
- cm_
link_ parser - Link parser - convert grammar links to AST nodes
- cm_
reference_ link_ parser - Reference-style link parser - parse
[text][label],[label][], and shortcut[label]. - cm_
strong_ emphasis_ parser - Strong+emphasis (triple delimiter) parser
- cm_
strong_ parser - Strong emphasis parser - convert grammar strong to AST nodes
- gfm_
autolink_ literal_ parser - GFM autolink literals (extension)
- gfm_
footnote_ reference_ parser - GFM-style footnote references (inline extension).
- gfm_
strikethrough_ parser - Strikethrough parser (GFM extension)
- marco_
dash_ strikethrough_ parser - Dash strikethrough parser (extended syntax).
- marco_
emoji_ shortcode_ parser - Emoji shortcode parser (Markdown Guide extended syntax).
- marco_
inline_ footnote_ parser - Inline footnotes (extended syntax).
- marco_
mark_ parser - Mark/highlight parser (extended syntax).
- marco_
platform_ mentions_ parser - Platform mentions parser (extended syntax).
- marco_
subscript_ arrow_ parser - Arrow-style subscript parser (extended syntax).
- marco_
subscript_ parser - Subscript parser (extended syntax).
- marco_
superscript_ parser - Superscript parser (extended syntax).
- marco_
task_ checkbox_ inline_ parser - Inline task checkbox parser (extended syntax).
- math_
display_ parser - Math display parser - converts grammar output to DisplayMath AST node
- math_
inline_ parser - Math inline parser - converts grammar output to InlineMath AST node
- shared
- Shared utilities for inline parsers
- text_
parser - Text parser - handle plain text fallback
Functions§
- parse_
inlines - Parse inline elements within text content (backward compatibility wrapper) Creates a new span at position 0:0 - USE parse_inlines_from_span() for position-aware parsing Returns a vector of inline nodes (Text, Emphasis, Strong, Link, CodeSpan)
- parse_
inlines_ from_ span - Parse inline elements within text content Takes a GrammarSpan to preserve position information Returns a vector of inline nodes (Text, Emphasis, Strong, Link, CodeSpan)