Konstrukt::Plugin::wiki::markup::pre - Block plugin to handle code/preformatted sections
my $pre = use_plugin 'wiki::markup::pre'; my $rv = $pre->process($block);
This one will match if the first character of the first line of the block is a whitespace or a tab.
The block will then be enclosed by <pre> and </pre>. All child nodes will be tagged as finished to prevent further wiki parsing on them.
although only the first line is indented the whole block will be marked as code.
Installs the templates.
This method will do the work.
$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.