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:
$block - Block node (of type Konstrukt::Parser::Node) containing the (text-)nodes of this block.
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.
Konstrukt::Plugin::wiki
To install Konstrukt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Konstrukt
CPAN shell
perl -MCPAN -e shell install Konstrukt
For more information on module installation, please visit the detailed CPAN module installation guide.