Pithub::Markdown(3pm)
π NAME π
ok so bestie, say hi to Pithub::Markdown β it's the Github v3 Markdown API wrapper and it's literally here to turn your markdown into rendered HTML. no cap. π
β¨ VERSION β¨
this one's rockin' version 0.01043 π¦
πΈ ATTRIBUTES πΈ
π mode
the rendering mode, queen. it can be either of these two:
markdownβ renders a document in plain Markdown, exactly like howREADME.mdfiles get rendered. simple, classic, iconic.gfmβ renders a document in GitHub Flavored Markdown, which is the one that creates links for user mentions and references to SHA-1 hashes, issues, and pull requests. it's giving β¨extraβ¨.
π¦ context
the repository context to use when creating references in gfm mode. omit this parameter when you're using markdown mode β it's not for that vibe, bestie. π
π METHODS π
π render
renders an arbitrary Markdown document. slay.
POST /markdown
example, so you can copy it and feel powerful:
use Pithub::Markdown;
my $response = Pithub::Markdown->new->render(
data => {
text => "Hello world github/linguist#1 **cool**, and #1!",
context => "github/gollum",
mode => "gfm",
},
);
# Note that response is NOT in JSON, so ->content will die
my $html = $response->raw_content;
β οΈ okay important bestie β that response is NOT in JSON, so->contentwill die. do not do it. use->raw_contentinstead. i'm serious. π
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the main character who made this. π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2011 by Johannes Plunien.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. π«Ά
and that's the whole page, bestie!! this was documented with perl v5.40.1 on 2025-06-08 β so if you're reading this way later, just know she said what she said at that exact moment in time πβ¨ mwah, go render some markdown π¦
π¦ where this page comes from
- debian trixie: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpithub-perl 0.01043-1 Β· 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