[pmwiki-users] custom bullet markup

Andy Kaplan-Myrth andy at kaplan-myrth.ca
Fri Mar 30 10:58:09 CDT 2007


Thanks -- One level of bullets is probably fine for my purposes.

One thing though -- it should be > for the ">" bracket:

> Markup('^>','block','/^(\\&gt;)\\s?(\\s*)/','<:ul,1,$0>$2');

I tried it and it works. Many thanks!

Cheers,
Andy

Patrick R. Michaud wrote:
> 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:
> 
>   Markup('^>','block','/^(\\&lt;)\\s?(\\s*)/','<:ul,1,$0>$2');
> 
> 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.
> 
> Pm
> 

-- 
Andy Kaplan-Myrth, LL.B., M.A.
Barrister & Solicitor
------------------------------------------------
email: andy at kaplan-myrth.ca
web: http://kaplan-myrth.ca
------------------------------------------------
PGP Key ID 0xE9349025
------------------------------------------------



More information about the pmwiki-users mailing list