[pmwiki-users] Re: Re: Re: Cookbook recipes updated for beta 19 compatibility
chr at home.se
chr at home.se
Thu Jan 27 16:23:50 CST 2005
On 27 Jan 2005, John Rankin wrote:
> A function something like the following, perhaps:
>
> function PreventMarkup($markups) {
> global $MarkupTable;
> foreach ($markups as $m)
> if isset($MarkupTable[$m]) unset($MarkupTable[$m])
> else Markup($m,'');
> }
I'd prefer the function being able to take a variable number of arguments
(where each one can be a an array).
>
> PreventMarkup(array('dropcaps', '^!', 'Q:'));
>
> Assuming the above works, I suggest we add it to the extended markup
> recipe.
Why not add the function to pmwiki.php? Instructions on how to use
funcition should of course go into extended markup.
> >The whole point being to make it easy for the administrator.
> >
> >Hmm... when I think about it... what about being able to disable markup
> >through markup? What if by adding the following to a wiki page
> >
> > (:prevent-markup ^!:)
> >
> >would disable that markup for that page? (This might be a can of worms of
> >course..)
>
> Putting such a statement into a GroupHeader would be interesting,
> particularly if one did not create a corresponding GroupPrintHeader.
Is this something good or something naughty?
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list