rst2typst.transforms module

class rst2typst.transforms.AssignLiteralLanguage(document, startnode=None)

Bases: Transform

Transformer to inject ‘language’ attribute into all <literal> and <literal_block> nodes.

apply(**kwargs)

Override to apply the transform to the document tree.

default_priority = 400

Numerical priority of this transform, 0 through 999 (override).

class rst2typst.transforms.RemapFootnotes(document, startnode=None)

Bases: Transform

apply(**kwargs)

Override to apply the transform to the document tree.

default_priority = 700

Numerical priority of this transform, 0 through 999 (override).