<div dir="ltr"><div><div>My new reciped PmwikiGists has a conflict with one of the MarkupExtensions components -- "digit en-dash digit", specifically<br><br><a href="http://www.pmwiki.org/wiki/Cookbook/Gists">http://www.pmwiki.org/wiki/Cookbook/Gists</a><br>

<a href="http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions">http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions</a><br><br></div>The gist markup looks like this: <span style="font-family:courier new,monospace"><code class="">(:gist id=5457652 line="2-4":)</code></span> which will render as <span style="font-family:courier new,monospace"><code data-gist-id="5457652" data-gist-line="2-4"</code></span><br>

<br><div>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 the third-party javascript library used in PmwikiGists.<br>

<br></div><div>The only solution I've been able to come up with is adding<br><br>$MarkupExtensions['-d'] = false;
<br><br></div><div>to local/config.php prior to including the MarkupExtensions recipe (as indicated in the MarkupExtensions documentation).<br><br></div><div>The inclusion of a line parameter, or a range of lines is something that may only happen sometimes -- perhaps never -- on a particular page or entire wiki using this recipe.<br>

<br></div><div>Is there any way to disable something like this only when that bit of markup is invoked?<br></div><div>Short of modifying MarkupExtensions?<br></div><div><br></div><div>MarkupExtensions defines this value when the main include is called -- it's a global.<br>

</div><div>PmWikiGists would only disable it when (if) a particular markup uses it -- way after the variable has been established.<br></div><div><br><br><br clear="all"><div><div><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>
</div></div></div></div></div>