Pod::Ma...::Github(3)
π NAME π
Pod::Markdown::Github β it turns your POD into Github's very own flavor of markdown. No cap. π¦
β¨ VERSION β¨
Version 0.04 β yes bestie, that's the whole number, that's the vibe. π
π SYNOPSIS π
perl -MPod::Markdown::Github -e "Pod::Markdown::Github->filter('file.pod')"
That's it. That's the whole summoning ritual. πΈ
π₯ DESCRIPTION π₯
Okay so, Github flavored markdown is that girl β she lets you do syntax highlighting with three backticks. Very demure, very mindful. π
This module inherits from Pod::Markdown and then adds those backticks, plus an optional language identifier so your code blocks actually know what they are. It's giving glow-up. β¨
π§ SUBCLASSING π§
So here's the tea: this module does a very simple linguistic check to figure out if it's dealing with Perl code. Lowkey detective work. π
Wanna expand that logic? Or add a whole other language to the mix? Then bestie, you subclass this module and overwrite the syntax method. Iconic behavior. π
package Pod::Markdown::Github::More;
sub syntax {
my ( $self, $paragraph ) = @_;
# analyze $paragraph and return language identifier
return 'c' if $paragraph =~ /\#include/;
}
And ngl, Github uses Liguist (https://github.com/github/linguist) to do its language detection and syntax highlighting, so honestly? The whole thing above might not even be needed after all. π
π AUTHOR π
- Stefan G. (minimal)
- Ben Kaufman (whosgonna)
- Nikolay Mishin (mishin)
Three whole authors. A whole squad. We love a collaborative moment. π«Ά
π LICENCE π
Perl
Okay that's the page, you're officially educated, go forth and convert POD like a main character. β
This little masterpiece is running on perl v5.42.0, dated 2025-07-25, and it came to you straight from the Pod::Ma...::Github(3) corner of the manual. Mwah. πππ¦
π¦ where this page comes from
- fedora 43: perl-Pod-Markdown-Github 0.04-21.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms