Re: Substitution in Admonitions

David Goodger <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CABiJP=LLvsOvVeoroqCdOpEk4SHmz-1iMSAcZ5-qiRa28rNJuA@mail.gmail.com>
On Mon, Jun 9, 2014 at 9:20 AM, Caplan, Michael
<[email protected]> wrote:
> Hi,
>
> I hope I'm in the right place to be asking this question.  I originally posted this question in the Sphinx doc user list, but I think this is a reStructuredText question specifically.
>
> Total newbie question.  How can I do a substitution in an admonition?
>
> For example:
>
> |p| account
>
> .. note::
>
>     **Been using |p| separately and now integrating?**

You're trying to do nested inline markup here, which Docutils doesn't
support. This has nothing to do with admonitions. The same thing
(substitution inside emphasis) won't work in any context, but the
substitution *will* work if you remove the strong emphasis ("**")
markup above.

Instead, why not style your Note admonitions? Add boldface to your
stylesheet, and drop the markup.

-- 
David Goodger <http://python.net/~goodger>

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.