We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be9163 commit 5060609Copy full SHA for 5060609
lib/PerlUsersJP/Builder.pm
@@ -284,6 +284,8 @@ sub format_text {
284
return Text::Markdown::markdown($text);
285
}
286
elsif ($format eq 'hatena') {
287
+ no warnings qw(once);
288
+ local $Text::Xatena::Node::SuperPre::SUPERPRE_CLASS_NAME = 'code prettyprint';
289
state $xatena = Text::Xatena->new;
290
my $inline = Text::Xatena::Inline->new;
291
my $html = $xatena->format( $text, inline => $inline );
0 commit comments