omd2tex.objects.file module#

class omd2tex.objects.file.File(filename: str | None = None, parrentdir: str | None = None, filedepth: int = 0)[source]#

Bases: BaseClass

from_file(filename: str) File[source]#

Parse markdown from disk into this File instance.

from_elements(list: List) File[source]#

Populate this file from an existing list of elements.

from_text(text: str) File[source]#

Parse markdown text directly into this File instance.

check()[source]#

Print parsed elements and their LaTeX output for debugging.

to_latex()[source]#

Render contained elements to a combined LaTeX string.