NAME

Konstrukt::Plugin::wiki::markup::list - Block plugin to handle ordered and unoderered lists

SYNOPSIS

my $l = use_plugin 'wiki::markup::list';
my $rv = $l->process($block);

DESCRIPTION

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.

EXAMPLE

* this
** is
*** an
** unordered
* list

# this
## one
### will
## be
# ordered

METHODS

install

Installs the templates.

Parameters:

none

process

This method will do the work.

It's logic is a little bit freaky to convert handle improper markup into valid HTML.

Parameters:

AUTHOR

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.

SEE ALSO

Konstrukt::Plugin::wiki