<div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Instead of return $gist; try return Keep($gist); -- this should prevent<br>
subsequent markup rules from processing the contents of $gist.</blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">That's it, thanks!<br><br></div><div class="gmail_extra">I knew there had to be a way to keep markup from being re-marked up, but couldn't find it.<br>

</div><div class="gmail_extra"><br clear="all"><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br><a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br>

<a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br><a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><a href="http://www.BestAndroidResources.com" target="_blank"></a><br>

<br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br></div>
<br><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 5:08 PM, John Rankin <span dir="ltr"><<a href="mailto:john.rankin@affinity.co.nz" target="_blank">john.rankin@affinity.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class="im"><br>
> My new reciped PmwikiGists has a conflict with one of the MarkupExtensions<br>
> components -- "digit en-dash digit", specifically<br>
><br>
> <a href="http://www.pmwiki.org/wiki/Cookbook/Gists" target="_blank">http://www.pmwiki.org/wiki/Cookbook/Gists</a><br>
> <a href="http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions" target="_blank">http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions</a><br>
><br>
> The gist markup looks like this: (:gist id=5457652 line="2-4":) which will<br>
> render as <code data-gist-id="5457652" data-gist-line="2-4"</code><br>
><br>
> The MarkupExtensions option "-d" converts the hyphen to an en-dash.<br>
> They look almost visually identical, but the en-dash is not recognized by<br>
> the third-party javascript library used in PmwikiGists.<br>
><br>
> The only solution I've been able to come up with is adding<br>
><br>
> $MarkupExtensions['-d'] = false;<br>
><br>
> to local/config.php prior to including the MarkupExtensions recipe (as<br>
> indicated in the MarkupExtensions documentation).<br>
><br>
> The inclusion of a line parameter, or a range of lines is something that<br>
> may only happen sometimes -- perhaps never -- on a particular page or<br>
> entire wiki using this recipe.<br>
><br>
> Is there any way to disable something like this only when that bit of<br>
> markup is invoked?<br>
<br>
</div>I think the answer is for the gists recipe to "hide" the "2-4" from the<br>
markup extension rule for -d. The d-d rule evaluates late in the sequence,<br>
after links, whereas gist evaluates early, as part of inline.<br>
<br>
Instead of return $gist; try return Keep($gist); -- this should prevent<br>
subsequent markup rules from processing the contents of $gist.<br>
<span class=""><font color="#888888"><br>
JR<br>
--<br>
John Rankin<br>
<br>
</font></span></blockquote></div><br></div></div>