omd2tex.objects.reference module#

class omd2tex.objects.reference.Reference(ref_text: str)[source]#

Bases: BaseClass

to_latex() str[source]#

Render reference placeholder; no direct LaTeX output.

static identify_elements_reference(elements: list) list[source]#

Update reference mappings for supported element types.

Parameters:

elements – List of parsed elements to inspect.

Returns:

New list with reference metadata registered.

static attach_reference(elements)[source]#

Attach the last seen reference object to the preceding element.

Parameters:

elements – Sequence of elements that may include Reference instances.

Returns:

List where references are assigned to prior elements when present.