[pmwiki-users] Markup generating bullet list

Patrick R. Michaud pmichaud at pobox.com
Thu Dec 1 07:37:28 CST 2005


On Thu, Dec 01, 2005 at 12:50:09AM -0500, Christian Schlatter wrote:
> I'm writing a markup rule that generates a bulleted list like e.g.
> 
> * first
> * second
> * third
> 
> The markup rule returns something like
> 
> "* first\n* second\n* third"
> 
> and is defined with precedence '<block', but the wiki markup somehow 
> doesn't get recognized as a list (only the first item). I suspect the 
> newline char is causing the problem.
> 
> Example:
> Markup('bc', '<block', '/\\(:bc:\\)/', "* first\n* second\n* third");

The "block" markup sequence occurs well after PmWiki has broken the
text into separate lines.  You probably want to have the (:bc:)
markup be processed before the split occurs.

    Markup('bc', '<split', '/\\(:bc:\\)/', "* first\n* second\n* third");

Pm




More information about the pmwiki-users mailing list