| Template-Plugin-Markdown documentation | Contained in the Template-Plugin-Markdown distribution. |
Template::Plugin::Markdown - TT plugin for Text::Markdown
[% USE Markdown -%] [% FILTER markdown %] #Foo Bar --- *Italic* blah blah **Bold** foo bar baz [%- END %]
Template::Plugin::Markdown is a plugin for TT, which format your text with Markdown Style.
Naoya Ito <naoya@bloghackers.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Template-Plugin-Markdown documentation | Contained in the Template-Plugin-Markdown distribution. |
#$Id: Markdown.pm,v 1.3 2005/11/12 03:28:09 naoya Exp $ package Template::Plugin::Markdown; use strict; use base qw (Template::Plugin::Filter); use Text::Markdown; our $VERSION = 0.02; sub init { my $self = shift; $self->{_DYNAMIC} = 1; $self->install_filter($self->{_ARGS}->[0] || 'markdown'); $self; } sub filter { my ($self, $text, $args, $config) = @_; my $m = Text::Markdown->new; return $m->markdown($text); } 1; __END__