[Pmwiki-users] Injecting markup via replacements ?

Patrick R. Michaud pmichaud
Sat Jul 31 11:35:46 CDT 2004


On Sat, Jul 31, 2004 at 10:46:26AM +0100, Ciaran wrote:
> Hi,
> Is there anyway I can 'inject' markup into the wiki rendering process,
> through one of the replacements, I've tried :
> $InlineReplacements
> $BrowseReplacements
> and
> $DoubleBrackets  (which is the one I was expoecting/hoping would work)
> 
> I've tried 'print'  and returning the string in all of these cases,
> but they all end up with the markup being written out to the html :(

> Alternatively is there a method I can call that I can pass 'raw'
> markup and get the correct HTML back.  I Want to do this so I can
> avoid checking a user's input, so I can allow all the Wiki markup etc
> :)

$BrowseDirectives (note: not $BrowseReplacements) is likely what you want.  
It takes place before any markup is processed, but after includes and
groupheaders are done.

BTW, This sort of thing becomes massively easier in PmWiki 2.0,  because
it's possible to say "I want to do this before step 'X'".  

Pm



More information about the pmwiki-users mailing list