#!/usr/bin/env perl
use 5.008;
use strict;
use warnings;
use Pod::Markdown;
convert(\*STDIN, \*STDOUT);
sub convert {
my ($in_file, $out_file) = @_;
my $parser = Pod::Markdown->new;
$parser->parse_from_filehandle($in_file);
print $out_file $parser->as_markdown;
}
=pod
=head1 NAME
pod2markdown - Convert POD text to Markdown
=head1 VERSION
version 1.110730
=head1 SYNOPSIS
$ pod2markdown < POD_File > Markdown_File
=head1 DESCRIPTION
This program uses L<Pod::Markdown> to convert POD into Markdown sources. It is
a filter that expects POD on STDIN and outputs Markdown on STDOUT.
=head1 SEE ALSO
This program is strongly based on C<pod2mdwn> from L<Module::Build::IkiWiki>.
=head1 INSTALLATION
See perlmodinstall for information and options on installing Perl modules.
=head1 BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at
L<http://rt.cpan.org/Public/Dist/Display.html?Name=Pod-Markdown>.
=head1 AVAILABILITY
The latest version of this module is available from the Comprehensive Perl
Archive Network (CPAN). Visit L<http://www.perl.com/CPAN/> to find a CPAN
site near you, or see L<http://search.cpan.org/dist/Pod-Markdown/>.
The development version lives at L<http://github.com/hanekomu/Pod-Markdown>
and may be cloned from L<git://github.com/hanekomu/Pod-Markdown.git>.
Instead of sending patches, please fork this project using the standard
git and github infrastructure.
=head1 AUTHORS
=over 4
=item *
Marcel Gruenauer <marcel@cpan.org>
=item *
Victor Moral <victor@taquiones.net>
=item *
Ryan C. Thompson <rct at thompsonclan d0t org>
=item *
Aristotle Pagaltzis <pagaltzis@gmx.de>
=back
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2004 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
__END__
#PODNAME: pod2markdown
#ABSTRACT: Convert POD text to Markdown