OSDN Git Service

noteプラグインにタイトルを書けるようにした。
authortakezoe <takezoe@871d6764-1e22-0410-b313-a55050885396>
Sat, 12 Nov 2011 07:25:12 +0000 (07:25 +0000)
committertakezoe <takezoe@871d6764-1e22-0410-b313-a55050885396>
Sat, 12 Nov 2011 07:25:12 +0000 (07:25 +0000)
takezoe/plugin/book/Note.pm

index 5d23bac..f6e15e9 100644 (file)
@@ -26,8 +26,9 @@ sub block {
        my $self    = shift;
        my $wiki    = shift;
        my $content = shift;
+       my $title   = shift;
        
-       return '<div class="note"><div class="note-title">Note</div>'.
+       return '<div class="note"><div class="note-title">Note: '.Util::escapeHTML($title).'</div>'.
                '<div class="note-body">'.$wiki->process_wiki($content).'</div></div>';
 }