Roles¶
The following outlines additional roles supported by this extension.
Emoticon Macro¶
The following role can be used to help include Confluence emoticon macros into generated Confluence documents.
- :confluence_emoticon:¶
The
confluence_emoticonrole allows a user to build inlined emoticon macros. For example::confluence_emoticon:`tick`: This is done. :confluence_emoticon:`cross`: This is incomplete.
Added in version 1.9.
Jira¶
The following role can be used to help include Jira macros into generated Confluence documents.
- :jira:¶
The
jirarole allows a user to build an inlined Jira macro to be configured with a provided Jira key. For example:See :jira:`TEST-123` for more details.
Added in version 1.7.
See also Jira directives.
LaTeX¶
Note
LaTeX support requires dvipng/dvisvgm to be installed on system; however,
if a Confluence instance supports a LaTeX macro, the
confluence_latex_macro option can be used instead. For more
information, please read Math support.
The following role can be used to help include LaTeX content into generated Confluence documents.
- :confluence_latex:¶
The
confluence_latexrole allows a user to build inlined LaTeX content. For example:This is a :confluence_latex:`$\\mathfrak{t}$est`.Added in version 1.8.
See also LaTeX directives.
Mentions¶
The following role can be used to help include Confluence mentions into generated Confluence documents.
- :confluence_mention:¶
Warning
Confluence Cloud mentions should always use account identifiers; where Confluence Data Center mentions should use either usernames or user keys. Attempting to use Confluence Cloud account identifiers when publishing to a Confluence Data Center will most likely result in an “Unsupported Confluence API call” error (500).
The
confluence_mentionrole allows a user to build inlined mentions. For Confluence Cloud instances, a mention to a specific user’s account identifier would be defined as follows:See :confluence_mention:`3c5369:fa8b5c24-17f8-4340-b73e-50d383307c59`.For Confluence Data Center, a mention to a specific user can either be set to the username value or a user’s key value:
For more information, contact :confluence_mention:`myuser`. (or) Contact :confluence_mention:`b9aaf35e80441f415c3a3d3c53695d0e` for help.
A user mapping table can also be configured using the
confluence_mentionsoption.Added in version 1.9.
Smart links¶
Note
Smart links will only render when using Confluence Cloud.
Support for inlined smart links can be created using the following roles.
- :confluence_doc:¶
The
confluence_docrole allows a user to define an inlined link to a document that is styled with a card appearance. The role accepts the name of a document in an absolute or relative fashion (in the same manner as Sphinx’s :doc: role). For example:See :confluence_doc:`my-other-page`.Added in version 2.1.
- :confluence_link:¶
The
confluence_linkrole allows a user to define an inlined link to a page that is styled with a card appearance. The role accepts a URL. How Confluence renders the context of a link card will vary based on which link targets Confluence supports. For example:See :confluence_link:`https://example.com`.Added in version 2.1.
See also smart link directives.
Status Macro¶
The following role can be used to help include Confluence status macro into generated Confluence documents.
- :confluence_status:¶
The
confluence_statusrole allows a user to build inlined status macros. For example::confluence_status:`My Status`The color of a status macro can be configured to a value supported by Confluence’s status macro. For example, to adjust the status value to a yellow color, the following can be used:
:confluence_status:`WARNING <yellow>`To tweak the style of a status macro to an outlined variant (if supported by the configured Confluence editor), adjust the color enclosure to square brackets:
:confluence_status:`PASSED [green]`Added in version 1.9.
Strikethrough¶
The following role can be used to explicitly define strikethrough text into generated Confluence documents.
- :confluence_strike:¶
The
confluence_strikerole allows a user to build inlined text that has been styled with a strikethrough. For example::confluence_strike:`My text`Added in version 2.1.
See also Strike content.