Skip to content

Possible to use role defined in rst_prolog as default_role? #13238

Closed Answered by AA-Turner
ipilcher asked this question in Q&A
Discussion options

You must be logged in to vote

Conceptually, all default_role does is apply the .. default-role:: directive to each document. Would the following work?:

rst_prolog = """
.. raw:: html

   <style type="text/css">
     .arg {
       font-family: monospace;
       font-size: 90%;
       font-weight: bold;
     }
   </style>

.. role:: arg
   :class: arg

.. default-role:: arg
"""

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ipilcher
Comment options

Answer selected by ipilcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants