<div class="gmail_quote">On 25 January 2010 06:05, Petko Yotov <span dir="ltr">&lt;<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Sunday 24 January 2010 15:04:05, Walter Keller wrote :<br>
<div class="im">&gt;     Markup(&#39;mRed&#39;, &#39;&gt;^&gt;&gt;&lt;&lt;&#39;, &#39;/{mRed\+}/&#39;, &#39;&gt;&gt;color=red&lt;&lt;&#39;);<br>
&gt; then then the formatting is not honoured, just the text expanded to<br>
&gt; &lt;&lt;color ....<br>
&gt; To make it work you need the clumsy definition<br>
&gt;     Markup(&#39;mBlue&#39;, &#39;&gt;^&gt;&gt;&lt;&lt;&#39;, &#39;/{mBlue\+}/&#39;, &#39;&amp;gt;&amp;gt;color=blue&amp;lt;&amp;lt;&#39;);<br>
&gt;<br>
&gt; This is neither intuitive nor documented! It took me quite a time to<br>
&gt; find out. At least it would also work for text variables.<br>
<br>
</div>Feel free to document it on <a href="http://pmwiki.org" target="_blank">pmwiki.org</a> on the pages where you think it should<br>
be documented -- this may be helpful to other users. Thanks in advance.<br>
<div class="im"><br>
&gt; Could you fix pmWiki, such that &#39;&gt;&gt;color=red&lt;&lt;&#39; would work?<br>
<br>
</div>No. PmWiki converts the wiki-text to HTML which uses a lot the characters &lt;<br>
and &gt;. In order not to mess with what it already processed to HTML, PmWiki<br>
converts those characters &lt; and &gt; from the wiki source to the entities &amp;lt;<br>
and &amp;gt;, and uses them when the page markup is processed. So it is correct,<br>
if you define new markup rules containing &lt; and &gt;, which are not native HTML<br>
but should be re-processed by PmWiki, you should use &amp;lt; and &amp;gt;.<br>
<br>
Thanks,<br>
<font color="#888888">Petko<br>
</font><br>
P.S. If your use of the {mBlue} markup is really as simple as your example,<br>
you know you can use the built-in %red% and %blue% command to change the text<br>
to red and to blue.<br>
<div><div></div><div class="h5"></div></div></blockquote></div><br>
<div>Possibly this is related to <a href="http://www.pmwiki.org/wiki/PITS/00962">http://www.pmwiki.org/wiki/PITS/00962</a></div>