[pmwiki-users] Using pmwiki's functions without building the wiki

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 15 13:00:53 CST 2007


On Mon, Jan 15, 2007 at 07:57:16PM +0100, Wouter Groeneveld wrote:
>    Hm, now I of course have trouble with IncludeText() itself.
>    IncludeText generates me something like for instance
> 
>    !!! this is a header
>    ''hello'' bla bla\\
>    text
> 
>    which is in ExampleGroup/ExampleArticle. But I'd like pmwiki to "render"
>    this piece, as it normally does when I do something like return
>    IncludeText(...); Is there a function I need to call in the action to do
>    something with it?

You want the MarkupToHTML() function:

    $text = IncludeText(...)
    $html = MarkupToHTML($pagename, $text);

Pm





More information about the pmwiki-users mailing list