Skip to content

perl5 - Pod::Markdown::Passthrough - assume that POD is already markdown

License

Notifications You must be signed in to change notification settings

d5ve/p5-Pod-Markdown-Passthrough

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Pod::Markdown::Passthrough - A passthrough mode for Pod::Markdown.

SYNOPSIS

use Pod::Markdown::Passthrough;

my $parser = Pod::Markdown::Passthrough->new();
$parser->parse_from_file($file_containing_markdown);
# Outputs the raw contents of $file_containing_markdown.
print $parser->as_markdown;

DESCRIPTION

Pod::Markdown::Passthrough is a child class of Pod::Markdown which makes the assumption that the source file is already markdown, and performs no processing of it at all.

github-aware CPAN module authoring tools such as Minilla build README.md from the module POD, but sometimes you want the README.md to be something specific, and independent of the module POD.

For example, using Minilla, add the following two lines to minil.toml to have the build process leave README.md untouched.

readme_from="README.md"
markdown_maker="Pod::Markdown::Passthrough"

CAVEATS

  • Only the parse_from_file() and as_markdown() methods of Pod::Markdown are replaced, so calling any other methods on the object is very unlikely to do what you'd expect.

LICENSE

Copyright (C) Dave Webb.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Dave Webb github@d5ve.com

About

perl5 - Pod::Markdown::Passthrough - assume that POD is already markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages