omd2tex.objects.footnote#

Classes

Footnote()

class omd2tex.objects.footnote.Footnote[source]#

Bases: BaseClass

collection = {}#
classmethod append(key: str, text: str | List[str]) None[source]#

Add a footnote to the shared collection converting markdown to LaTeX.

Parameters:
  • key – Footnote identifier.

  • text – Footnote text as string or list of lines.

Returns:

None

Side Effects:

Mutates the class-level collection mapping.

to_default() None[source]#

Reset the shared footnote collection to defaults.

change_footnote_keys(text: str) str[source]#

Replace footnote keys in text with unique generated identifiers.

Parameters:

text – Input text containing footnote markers.

Returns:

Text with footnote keys rewritten to unique values.