Module

parsing.blocks.footnote

Footnote parsing for Patitas parser.

Handles footnote definition parsing.

Classes

FootnoteParsingMixin 2
Mixin for footnote definition parsing. Required Host Attributes: - _current: Token | None Req…

Mixin for footnote definition parsing.

Required Host Attributes:

  • _current: Token | None

Required Host Methods:

  • _at_end() -> bool
  • _advance() -> Token | None
  • _parse_inline(text, location) -> tuple[Inline, ...]

Attributes

Name Type Description
_current Token | None

Methods

Internal Methods 1
_parse_footnote_def 0 FootnoteDef
Parse footnote definition. Format: [^identifier]: content Token value format: …
def _parse_footnote_def(self) -> FootnoteDef

Parse footnote definition.

Format: [^identifier]: content Token value format: identifier:content

Returns
FootnoteDef