Abstract base class for DocTitle and SectionSubTitle transforms.
There are no implemented interfaces.
default_priority
(type: NoneType
)
None
apply(**kwargs)
Override to apply the transform to the document tree.
candidate_index(node)
Find and return the promotion candidate and its index.
Return (None, None) if no valid candidate was found.
promote_subtitle(node)
Transform the following node tree:
<node> <title> <section> <title> ...
into
<node> <title> <subtitle> ...
promote_title(node)
Transform the following tree:
<node> <section> <title> ...
into
<node> <title> ...
node is normally a document.