Skip to main content

Module inlines

Module inlines 

Source
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_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_strong_emphasis_parser::parse_strong_emphasis;
pub use cm_strong_parser::parse_strong;
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)