Pod::S...arkdown(3pm)
π Pod::Simple::Wiki::Markdown π
okay bestie, welcome to Pod::Simple::Wiki::Markdown(3pm) β a lil' User Contributed Perl Documentation page that's gonna teach you how to turn Pod into Markdown wiki magic β¨ it's giving classy, it's giving useful.
πΈ NAME πΈ
Pod::Simple::Wiki::Markdown β a whole entire class for creating Pod-to-Markdown wiki filters. yes queen, that's the job π
β¨ SYNOPSIS β¨
okay so, plot twist: you don't use this module directly. nope. it gets called through Pod::Simple::Wiki β it's the popular girl, this one is her ride-or-die π«Ά
#!/usr/bin/perl -w
use strict;
use Pod::Simple::Wiki;
my $parser = Pod::Simple::Wiki->new('markdown');
...
and if you wanna convert Pod to a markdown wiki format using the installed pod2wiki utility, it's literally this:
pod2wiki --style markdown file.pod > file.wiki
ate. no crumbs. π₯
π¦ DESCRIPTION π¦
The Pod::Simple::Wiki::Markdown module converts Pod text into Markdown text. that's the whole vibe π
Pod (Plain Old Documentation) is a simple markup language used for writing Perl documentation β it's lowkey the blueprint, the main character origin story π
This module isn't generally invoked directly. like, ever. instead it's called via Pod::Simple::Wiki. for the full tea, go check the Pod::Simple::Wiki and pod2wiki documentation. iykyk π
π METHODS π
Pod::Simple::Wiki::Markdown inherits all of the methods of Pod::Simple and Pod::Simple::Wiki. all of them. iconic behavior honestly. see Pod::Simple and Pod::Simple::Wiki for more details β¨
π Markdown Specific information π
okay this is the part where we get real. some format features of Pod are not present in base Markdown (and vice-versa, bestie, it goes both ways π). in particular, this module supports both code blocks and definition lists β in a somewhat inconsistent fashion. not me admitting that π
- Code blocks are supported using GitHub Markdown syntax: three backticks at the start and end of the codeblock.
- Definition lists are (crudely) supported in the PHP Markdown Extra syntax: a colon followed by three spaces starting the line with the definition.
PHP Markdown Extra works with the GitHub syntax, so this should not cause a problem. (GitHub does not support definition lists.) π«
This module also creates nested definition lists β which may or may not be supported. (And may need extra newlines entered, which is beyond the technical limits of this module.) bestie, we're doing our best π
π Links π
Links are always output in the universal [link text](link source) format, even when it's redundant, or overlong. yes, even then. no notes.
Anything POD considers a link will be treated as one, even if it's not a valid link. (In particular, automatic 'man page' links will not point to anything useful β the user will be required to turn (Pod::Simple) into something useful, likely your favorite interface for CPAN.) so like, heads up, you're gonna have to do a lil' manual labor π
π Escapes π
Escapes are automatically applied to asterisks, underscores, backticks, and backslashes, and they are always required. periodt.
Markdown provides escapes for other characters (in particular braces and parenthesis), but they are not required in all cases. this module leaves it up to the user to determine when they would be considered formatting and when they wouldn't. your call, bestie π
π SEE ALSO π
This module also installs a pod2wiki command line utility. See pod2wiki --help for details. go check it out, it's a whole thing π¦
π ACKNOWLEDGEMENTS π
Thanks to Daniel T. Staal for patches, documentation or bugfixes. we stan a contributor π«Ά
π DISCLAIMER OF WARRANTY π
Please refer to the DISCLAIMER OF WARRANTY in Pod::Simple::Wiki. no warranty energy, but respectfully π
β AUTHORS β
- John McNamara
jmcnamara@cpan.org - Daniel T. Staal
DStaal@usa.net
πΈ COPYRIGHT πΈ
MMIII-MMXV, John McNamara, Daniel T. Staal
All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. slay, open source queen π
and that's the whole page bestie, you're officially a Markdown-Pod-conversion girly now π
and a cute lil' sign-off: this whole thing is from perl v5.36.0, dated 2022-10-13. mwah π
π¦ where this page comes from
- ubuntu noble: libpod-simple-wiki-perl 0.20-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-simple-wiki-perl 0.20-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-simple-wiki-perl 0.20-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms