This works like document subtitles, but for sections. For example,
<section> <title> Title <section> <title> Subtitle ...
is transformed into
<section> <title> Title <subtitle> Subtitle ...
For details refer to the docstring of DocTitle.
There are no implemented interfaces.
default_priority
(type:
int
)
350
apply()
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.
There are no known subclasses.