Examples¶
Due to Limitation, the extension can not work with all roles, so we list all use cases we have tested.
Nested Parse¶
See also
|
|
|
|
|
|
Note
For nested roles, note that the backquote `
needs to be escaped by \\
.
Cross references: :ref:
, :doc:
and more…¶
comboroles_roles = {
'literal_ref': ['literal', 'ref'],
'literal_doc': ['literal', 'doc'],
}
|
|
|
|
|
|
|
The “python” Domain¶
comboroles_roles = {
'strong_pycls': ['strong', 'py:class'],
}
Works with other Extensions¶
sphinx.ext.extlink
¶
sphinx.ext.extlink
is a Sphinx builtin extension to create
shorten external links.
Assume that we have the following configuration, extlink creates the issue
role,
then comboroles creates a literal_issue
role based on it:
extlinks = {
'issue': ('https://github.com/sphinx-notes/comboroles/issues/%s', '💬%s'),
}
comboroles_roles = {
'literal_issue': ['literal', 'issue'],
}
sphinxnotes.strike
¶
sphinxnotes.strike
is an extension that adds
strikethrough text support to Sphinx.
comboroles_roles = {
'literal_strike': ['literal', 'strike'],
}
|
text |
|
|