[pmwiki-users] Modified (:markup:)
Patrick R. Michaud
pmichaud at pobox.com
Sat Mar 19 16:43:26 CST 2005
On Sat, Mar 19, 2005 at 12:07:20PM +0100, Dominique Faure wrote:
> Anyway, is there a mean to stop markup action when handling directives
> parameters?
> More precisely, if I design a markup rule like this:
>
> Markup('mymarkup', 'block',
> "/\\(:mymarkup(\\s+.*)?\\s*:\\)\\s+$KeepToken(\\d.*?)$KeepToken/e",
> "Keep(MyMarkup(PSS('$1'),'$2'))");
>
> and if I use it so:
>
> (:mymarkup param="MyParamValue":) [=
> ...
> =]
>
> the param value (MyParamValue) is catched by MyMarkup func as '[][]nnL[][]'
> since link dedicated markup had already occured on markup line and
> transformed MyParamValue as a wiki link.
Just be sure to process your markup prior to any link markups --
i.e., use '<links' as the second parameter instead of 'block'.
(Currently 'block' markups are processed after link markups, although
I have a proposal outstanding to change this that hasn't received much
comment.)
Pm
More information about the pmwiki-users
mailing list