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

Nested Parse.

:parsed_literal:`https://example.com``

https://example.com

:parsed_literal:`|release|``

1.0

:parsed_literal:`RFC: :rfc:\`1459\``

RFC: RFC 1459

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'],
}

:ref:`composite-roles`

Composite Roles

:literal_ref:`composite-roles`

Composite Roles

:doc:`changelog`

Change Log

:literal_doc:`changelog`

Change Log

The “python” Domain

comboroles_roles = {
   'strong_pycls': ['strong', 'py:class'],
}

:py:class:`str`

str

:strong_pycls:`str`

str

Works with other Extensions

sphinxnotes.strike

sphinxnotes.strike is an extension that adds strikethrough text support to Sphinx.

comboroles_roles = {
   'literal_strike': ['literal', 'strike'],
}

:strike:`text`

text

:literal_strike:`text`

text