POD2MARKDOWN(1)

πŸ’– POD2MARKDOWN πŸ’–

okay bestie, so this one is a little command-line icon called pod2markdown, and yes it lives in the User Contributed Perl Documentation section, and yes it's about to make your whole documentation workflow cute ✨


🌸 NAME 🌸

pod2markdown β€” Convert POD text to Markdown. that's it, that's the whole job description, and it does it slayfully πŸ’…


πŸŽ€ VERSION πŸŽ€

version 3.400 β€” that's the one, that's the number, don't @ me 🫢


✨ SYNOPSIS ✨

four ways to run this thing, pick your fighter:

# parse STDIN, print to STDOUT
$ pod2markdown < POD_File > Markdown_File

# parse file, print to STDOUT
$ pod2markdown input.pod

# parse file, print to file
$ pod2markdown input.pod output.mkdn

# parse STDIN, print to file
$ pod2markdown - output.mkdn

like, look at that. no notes. a full little pipeline moment πŸ’œ


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this program uses Pod::Markdown to convert POD into Markdown sources. lowkey iconic, highkey useful.

UTF-8 is the default output encoding if no encoding options are specified (see "OPTIONS"). that's the vibe check it passes by default, no cap 🌈

it accepts two optional arguments:

  • input pod file β€” defaults to STDIN
  • output markdown file β€” defaults to STDOUT

two optional args, both with defaults, very low-maintenance main character energy honestly πŸ‘‘


πŸ’… OPTIONS πŸ’…

buckle up, there's a list, and we're doing the whole list:

  • --html-encode-chars β€” a list of characters to encode as HTML entities. pass a regexp character class, or pass 1 to mean control chars, high-bit chars, and "<&>"'". see "html_encode_chars" in Pod::Markdown for more information πŸ“
  • --match-encoding (-m) β€” use the same =encoding as the input pod for the output file. matching outfits, but for encodings ✨
  • --local-module-url-prefix β€” alters the perldoc urls that are created from L<> codes when the module is a "local" module (Local::* or Foo_Corp::* (see perlmodlib)). the default is to use perldoc_url_prefix. see "local_module_url_prefix" in Pod::Markdown for more information πŸ¦‹
  • --man-url-prefix β€” alters the man page urls that are created from L<> codes. the default is http://man.he.net/man. see "man_url_prefix" in Pod::Markdown for more information πŸ”₯
  • --perldoc-url-prefix β€” alters the perldoc urls that are created from L<> codes. can be:

the default is "metacpan". see "perldoc_url_prefix" in Pod::Markdown for more information 😭

  • --output-encoding (-e) β€” specify the encoding for the output file πŸŽ€
  • --utf8 (-u) β€” alias for -e UTF-8. tiny shortcut, big slay πŸ’–

⭐ SEE ALSO ⭐

this program is strongly based on "pod2mdwn" from Module::Build::IkiWiki. giving credit where credit is due, as one should 🫢


πŸ‘‘ AUTHORS πŸ‘‘

the whole crew, respect the roster:

  • Marcel Gruenauer <marcel@cpan.org>
  • Victor Moral <victor@taquiones.net>
  • Ryan C. Thompson <rct at thompsonclan d0t org>
  • Aristotle Pagaltzis <pagaltzis@gmx.de>
  • Randy Stauner <rwstauner@cpan.org>

this software is copyright (c) 2011 by Randy Stauner.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free software, free to remix, we love to see it 🌸


and that's the whole page bestie, go forth and convert some POD πŸ’…βœ¨

perl v5.42.0 Β· 2024-03-08 β€” that's the version of perl and the date this whole thing was dated, mwah, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from