my $response = Pithub::Markdown->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;
gives:
$ perl example.pl
Can't locate object method "render" via package "Pithub::Markdown" (perhaps you forgot to load "Pithub::Markdown"?) at example.pl line 1.
without a use Pithub::Markdown and gives
$ perl example.pl
Can't use string ("Pithub::Markdown") as a HASH ref while "strict refs" in use at (eval 38) line 23.
Coverage remained the same at 98.939% when pulling 45bf3ac9fbc74b1e3a02c4ee515efe636f37e6da on plicease:graham/example-error-1 into 8e2c64c990ad8edb70c611315dc36ea2b701a3be on plu:master.
The example in this POD doesn't work for me:
gives:
without a
use Pithub::Markdown
and giveswithout the
->new
.