> > Instead of return $gist; try return Keep($gist); -- this should prevent > subsequent markup rules from processing the contents of $gist.
That's it, thanks! I knew there had to be a way to keep markup from being re-marked up, but couldn't find it. -Michael Paulukonis http://www.xradiograph.com <http://goog_2112721603>Interference Patterns (a blog)<http://www.xradiograph.com%5Cinterference> @XraysMonaLisa <https://twitter.com/XraysMonaLisa> http://michaelpaulukonis.com <http://www.BestAndroidResources.com> Sent from somewhere in the Cloud (hearthrug, by the fender) On Tue, Sep 3, 2013 at 5:08 PM, John Rankin <[email protected]>wrote: > > > My new reciped PmwikiGists has a conflict with one of the > MarkupExtensions > > components -- "digit en-dash digit", specifically > > > > http://www.pmwiki.org/wiki/Cookbook/Gists > > http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions > > > > The gist markup looks like this: (:gist id=5457652 line="2-4":) which > will > > render as <code data-gist-id="5457652" data-gist-line="2-4"</code> > > > > The MarkupExtensions option "-d" converts the hyphen to an en-dash. > > They look almost visually identical, but the en-dash is not recognized by > > the third-party javascript library used in PmwikiGists. > > > > The only solution I've been able to come up with is adding > > > > $MarkupExtensions['-d'] = false; > > > > to local/config.php prior to including the MarkupExtensions recipe (as > > indicated in the MarkupExtensions documentation). > > > > 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. > > > > Is there any way to disable something like this only when that bit of > > markup is invoked? > > I think the answer is for the gists recipe to "hide" the "2-4" from the > markup extension rule for -d. The d-d rule evaluates late in the sequence, > after links, whereas gist evaluates early, as part of inline. > > Instead of return $gist; try return Keep($gist); -- this should prevent > subsequent markup rules from processing the contents of $gist. > > JR > -- > John Rankin > >
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
