Module

parsing.inline

Inline parsing subsystem for Patitas parser.

Provides mixins for parsing inline Markdown content:

  • Emphasis and strong (*, _)
  • Code spans (`)
  • Links and images
  • Footnote references
  • HTML inline
  • Roles (content)
  • Math ($expression$)
  • Strikethrough (~~)

Architecture:

Uses CommonMark delimiter stack algorithm for proper emphasis parsing. See: https://spec.commonmark.org/0.31.2/#emphasis-and-strong-emphasis

Classes

InlineParsingMixin 0
Combined inline parsing mixin. Combines all inline parsing functionality into a single mixin that …

Combined inline parsing mixin.

Combines all inline parsing functionality into a single mixin that can be inherited by the Parser class.

Required Host Attributes:

  • _source: str
  • _math_enabled: bool
  • _strikethrough_enabled: bool
  • _footnotes_enabled: bool
  • _link_refs: dict[str, tuple[str, str]]