Konstrukt::Plugin::wiki::markup::list - Block plugin to handle ordered and unoderered lists
my $l = use_plugin 'wiki::markup::list'; my $rv = $l->process($block);
This one will match if the first character of the first line of the block is a * (-> unordered list) or # (->ordered list).
The block will then be enclosed by <ul> and </ul> or <ol> and </ol>. Each line with leading bullets will be added as a list item. Deeper levels in the list can be achieved by putting more than one bullet in from of the line.
* this ** is *** an ** unordered * list # this ## one ### will ## be # ordered
This method will do the work.
It's logic is a little bit freaky to convert handle improper markup into valid HTML.
Parameters:
Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.
This document is free software. It is distributed under the same terms as Perl itself.