Boost C++ Libraries: Ticket #1190: Markups inside simple markups https://svn.boost.org/trac10/ticket/1190 <p> Stjepan Rajko wrote: </p> <blockquote class="citation"> <p> On 7/29/07, Joel de Guzman &lt;joel@…&gt; wrote: </p> <blockquote class="citation"> <p> Stjepan Rajko wrote: </p> <blockquote class="citation"> <p> If I have a template <a class="missing wiki">ProducerConcept</a> and I write: </p> <p> ['[<a class="missing wiki">ProducerConcept</a>]] </p> <p> the template gets expanded and written in italics, but if I write: </p> <p> /[<a class="missing wiki">ProducerConcept</a>]/ </p> <p> I get [<a class="missing wiki">ProducerConcept</a>] in italics, i.e. the template does not get expanded. Is this intended? Seems a bit weird. </p> </blockquote> <p> This is documented: </p> </blockquote> <p> Doh! Yep, right there it is... sorry for the noise. </p> <blockquote class="citation"> <p> I know a way to relax these limitations, but it will involve some complexity. I am not sure yet if the added complexity is worth it. </p> </blockquote> <p> I don't see it as necessary. I was just confused, due to having missed the relevant parts of the docs. </p> </blockquote> <p> Don't brush it off just yet. There's the principle of "least surprise". If this behavior is surprising, regardless if it is documented or not, then it must be reconsidered. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1190 Trac 1.4.3 Daniel James Sat, 10 Jul 2010 15:29:23 GMT owner changed https://svn.boost.org/trac10/ticket/1190#comment:1 https://svn.boost.org/trac10/ticket/1190#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Daniel James</span> </li> </ul> <p> FWIW, this has changed now. </p> <pre class="wiki">/[ProducerConcept]/ </pre><p> not produces the equivalent of: </p> <pre class="wiki">\/[ProducerConcept]\/ </pre><p> As 'simple markup' can no longer contain <code>[</code> so <code>/</code> is not treated as italic markup and <code>[ProducerConcept]</code> gets expanded. </p> <p> I'll try to improve this in a future version. </p> Ticket