blark.sphinxdomain.BlarkXRefRole
- class blark.sphinxdomain.BlarkXRefRole(fix_parens: bool = False, lowercase: bool = False, nodeclass: type[Element] | None = None, innernodeclass: type[TextElement] | None = None, warn_dangling: bool = False)[source]
Bases:
XRefRoleMethods
process_link(env, refnode, ...)Called after parsing title and target text, and creating the reference node (given in refnode).
Attributes
configReference to the
Configobject.envReference to the
BuildEnvironmentobject.explicit_title_rehas_explicit_titleA boolean indicates the role has explicit title or not.
disabledA boolean indicates the reference is disabled.
titleThe link title for the interpreted text.
targetThe link target for the interpreted text.
nameThe role name actually used in the document.
rawtextA string containing the entire interpreted text input.
textThe interpreted text content.
linenoThe line number where the interpreted text begins.
inlinerThe
docutils.parsers.rst.states.Inlinerobject.optionsA dictionary of directive options for customisation (from the "role" directive).
contentA list of strings, the directive content for customisation (from the "role" directive).