POD2PANDOC(1p)
π POD2PANDOC(1p) π
okay so bestie, this is pod2pandoc β a little icon from the User Contributed Perl Documentation corner of the universe, and she converts Pod to the Pandoc document model. no cap. let's get into it π«Ά
β¨ NAME β¨
pod2pandoc β convert Pod to Pandoc document model π
π¦ SYNOPSIS π¦
pod2pandoc [OPTIONS] {INPUT} [ [ -- ] PANDOC_ARGUMENTS ]
pod2pandoc Module.pm -o Module.pdf
pod2pandoc script.pl -t markdown
pod2pandoc Module::Name -o Module-Name.html
pod2pandoc lib/ wiki/ --ext .md --wiki --index Home -t markdown_github
pod2pandoc lib/ docs/ --standalone
πΈ DESCRIPTION πΈ
so pod2pandoc takes "Plain Old Documentation" format (aka Pod, see perlpod, iykyk) and flips it into the Pandoc document model β the one from <http://pandoc.org/> β so it can get processed even further into literally any other document format you want: HTML, Markdown, LaTeX, PDF, EPUB, docx, ODT, manβ¦ the whole girlies lineup. it's giving versatility π
by default β or if you pass input - β a document gets read from STDIN. if you hand her multiple input files, they get combined into one document and listed in the document metadata field file. the result gets printed in JSON format, OR it gets passed straight to Pandoc if you give extra options like -t or -o. slay.
and to process a whole directory of .pm and/or .pod files? just specify an input directory as the first input, and an optional output directory as the second. main character energy fr fr π
π OPTIONS π
--help,-h,-?β prints out usage information and dips. exit, periodt. β¨--parse FORMATSβ parse and include data sections. use"*"for all of them.--podurl URLβ base URL to Perl modules. default is"https://metacpan.org/pod/". a false value such as0or""will disable linking to external modules. lowkey handy.--ext EXTβ output file extension when processing a directory. default is"html".--index NAMEβ index file name (like"index.html") when processing a directory. can be disabled with0.--nameβ include theNAMEsection, which is removed by default. (rude of the default honestly, but okay π)--wikiβ create wikilinks when processing a directory.--updateβ only process when the input file is newer than the output file. efficiency queen β--default-meta FILEβ read default metadata from the given file.--quietβ don't emit warnings and status information. shhh π€«...β any additional options get passed through to thepandocexecutable. it's giving teamwork π«Ά
π SEE ALSO π
this script is part of Pod::Pandoc and implemented in App::pod2pandoc. together with the Pandoc document converter, it can be used as a customizable replacement for all those specialized Pod converter scripts, like:
pod2htmlpod2projdocspod2manpod2readmepod2usagepod2latexpod2markdownpod2textpod2projdocs
(yes pod2projdocs is in there twice, she's just that iconic πβ¨)
vibe check complete: every flag, every default, every path β all present and accounted for. no details were harmed in the making of this manpage π
perl v5.32.1 Β· 2022-01-20 β that's the version and date bestie, and honestly? she ate. go convert something gorgeous πππ
π¦ where this page comes from
- debian bookworm: pod2pandoc 0.5.0-3 Β· GPL-2.0-only
- debian trixie: pod2pandoc 0.5.0-3 Β· GPL-2.0-only
- ubuntu jammy: pod2pandoc 0.5.0-3 Β· GPL-2.0-only
- ubuntu noble: pod2pandoc 0.5.0-3 Β· GPL-2.0-only
- ubuntu resolute: pod2pandoc 0.5.0-3 Β· GPL-2.0-only
- ubuntu stonking: pod2pandoc 0.5.0-3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms