[pmwiki-users] custom bullet markup

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 30 10:42:55 CDT 2007

On Fri, Mar 30, 2007 at 10:42:01AM -0400, Andy Kaplan-Myrth wrote:
> During years of typing notes in classes, I developed my own markup for 
> outline lists. Instead of "*", I use ">" for the first level of bullets. 
> I'm sure I can add that as custom markup in PmWiki, but I can't get it 
> to work -- I suspect my regexp has a problem, or maybe it's conflicting 
> with other markup at some point.
> Taking the line that defines the "*" markup from stdmarkup.php, Here's 
> what I tried:
>    Markup('^>','block','/^(\\>+)\\s?(\\s*)/','<:ul,$1,$0>$2');

When PmWiki is converting markup, angle brackets have already been
converted to the HTML &lt; and &gt; sequences, so what you really
need is:


This only handles a single ">" (first level of bullets), if you
want to handle multiple angles then we need to adjust the markup
a bit further.


More information about the pmwiki-users mailing list