[pmwiki-users] custom bullet markup
Andy Kaplan-Myrth
andy at kaplan-myrth.ca
Fri Mar 30 09:42:01 CDT 2007
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');
That doesn't do anything, so I also tried taking out the "//":
Markup('^>','block','/^(>+)\\s?(\\s*)/','<:ul,$1,$0>$2');
But that didn't work either. To see if I was on the right track, I tried
defining "@" as the bullet symbol:
Markup('^@','block','/^(@+)\\s?(\\s*)/','<:ul,$1,$0>$2');
That worked, so I think my definition for ">" is conflicting with other
markup.
Is it possible to define ">" as markup for a bullet list?
btw, before I settled on testing with "@" I tried debugging with "." and
"," and wow, did that ever mess up my page rendering!
Thanks for any help you can give,
Andy
--
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