Substitution In Admonitions
How can I do a substitution in an admonition? For example: |p| account .. note:: **Been using |p| separately and now integrating?** In my sphinx conf.py I define a replaceme
Solution 1:
The substitution in the note works if you remove the strong emphasis (double asterisks). Nesting of inline markup is not supported.
References:
- http://sphinx-doc.org/rest.html#inline-markup
- http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup
- http://docutils.sourceforge.net/FAQ.html#is-nested-inline-markup-possible
Here is a workaround if you need to keep the strong emphasis:
In conf.py, use the following definition:
rst_epilog = '.. |p| replace:: **Labnext**'
In your .rst file, use this markup:
.. note:: **Been using** |p| **separately and now integrating?**
Post a Comment for "Substitution In Admonitions"