Skip to content

Commit 5060609

Browse files
committed
コードのPrettify
1 parent 4be9163 commit 5060609

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/PerlUsersJP/Builder.pm

+2
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ sub format_text {
284284
return Text::Markdown::markdown($text);
285285
}
286286
elsif ($format eq 'hatena') {
287+
no warnings qw(once);
288+
local $Text::Xatena::Node::SuperPre::SUPERPRE_CLASS_NAME = 'code prettyprint';
287289
state $xatena = Text::Xatena->new;
288290
my $inline = Text::Xatena::Inline->new;
289291
my $html = $xatena->format( $text, inline => $inline );

0 commit comments

Comments
 (0)