[pmwiki-devel] Recipe returning PmWiki Markup

Simon nzskiwi at gmail.com
Mon Apr 6 14:10:49 PDT 2026


Thanks for such a prompt response.
Using > is what is required. (oddly)
I didn't need to use PRR.
And I needed '\\\\' not .\\.
It looks like some characters need escaping.

Simon



On Tue, 7 Apr 2026 at 08:27, Petko Yotov <5ko at 5ko.fr> wrote:

> You may need the HTML entity > instead of >
>
>    -> Some content.
>
> (ampersand, gt, semicolon in case the mailing list mangles it)
>
> (No entities for '<:block>'.)
>
> And/or it may depend on when your markup is processed.
>
> And/or this may help:
>
>    return PRR($retVal);
>
> See FunctionList for PRR().
>
> Petko
>
> On 06/04/2026 21:21, Simon wrote:
> > I'm developing a recipe for which I'd rather the receipe returned
> > PmWiki markup rather than HTML for placement in a wiki page.
> > I can't help feeling this is documented somewhere, but I can't locate
> > it.
> >
> > I've got something like
> >     const NL = "\n";
> >     $retVal = '<:block>' . NL; # break out of paragraph
> >     $retVal .= '!! Heading' . NL;
> >     $retVal .= '->Some content.\\' . NL;
> >     $retVal .= 'Some more content.\\' . NL;
> >     return $retVal;
> >
> > On the page I see the heading displayed correctly, but not the indent
> > or new lines
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20260407/aae16ec4/attachment.html>


More information about the pmwiki-devel mailing list