| Template-Plugin-MultiMarkdown documentation | Contained in the Template-Plugin-MultiMarkdown distribution. |
Template::Plugin::MultiMarkdown - TT plugin for Text::MultiMarkdown
[% USE MultiMarkdown -%] [% FILTER multimarkdown %] #Foo Bar --- *Italic* blah blah **Bold** foo bar baz [%- END %]
Template::Plugin::MultiMarkdown is a plugin for TT, which will format your text with MultiMarkdown Style.
There are two methods required by the TT plugin API:
init()filter()This man page describes version 0.03.
Andrew Ford <A.Ford@ford-mason.co.uk> (based on the Template::Plugin::Markdown TT plugin by Naoya Ito <naoya@bloghackers.net>).
Copyright (C) 2009 Andrew Ford
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Template-Plugin-MultiMarkdown documentation | Contained in the Template-Plugin-MultiMarkdown distribution. |
#$Id: MultiMarkdown.pm 4103 2009-03-02 20:41:50Z andrew $ package Template::Plugin::MultiMarkdown; use strict; use base qw (Template::Plugin::Filter); use Text::MultiMarkdown; our $VERSION = 0.03; sub init { my $self = shift; $self->{_DYNAMIC} = 1; $self->install_filter($self->{_ARGS}->[0] || 'multimarkdown'); return $self; } sub filter { my ($self, $text, $args, $config) = @_; my $m = Text::MultiMarkdown->new(%{$config || {}}); return $m->markdown($text); } 1; __END__