OSDN Git Service

rawプラグインをbookプラグインからcoreプラグインに移動。
authortakezoe <takezoe@users.osdn.me>
Mon, 10 Oct 2011 15:14:47 +0000 (15:14 +0000)
committertakezoe <takezoe@users.osdn.me>
Mon, 10 Oct 2011 15:14:47 +0000 (15:14 +0000)
plugin/core/Install.pm
plugin/core/Raw.pm [new file with mode: 0644]

index 106bbc4..f4eed5f 100644 (file)
@@ -69,6 +69,7 @@ sub install {
        
        $wiki->add_block_plugin("pre" ,"plugin::core::Pre" ,"HTML");
        $wiki->add_block_plugin("bq" ,"plugin::core::Blockquote" ,"HTML");
+       $wiki->add_inline_plugin("raw" ,"plugin::core::Raw" ,"HTML");
 }
 
 sub accept_edit {
diff --git a/plugin/core/Raw.pm b/plugin/core/Raw.pm
new file mode 100644 (file)
index 0000000..e472bd0
--- /dev/null
@@ -0,0 +1,29 @@
+################################################################################
+#
+# <p>°ú¿ô¤Ç»ØÄꤷ¤¿Ê¸»úÎó¤ò¤½¤Î¤Þ¤Þɽ¼¨¤¹¤ë¥¤¥ó¥é¥¤¥ó¥×¥é¥°¥¤¥ó¤Ç¤¹¡£</p>
+# <pre>
+# {{raw '''°ú¿ô¤Ç»ØÄꤷ¤¿Ê¸»úÎó¤ò¤½¤Î¤Þ¤Þɽ¼¨¤·¤Þ¤¹'''}}
+# </pre>
+#
+################################################################################
+package plugin::core::Raw;
+#==============================================================================
+# ¥³¥ó¥¹¥È¥é¥¯¥¿
+#==============================================================================
+sub new {
+       my $class = shift;
+       my $self = {};
+       return bless $self,$class;
+}
+
+#==============================================================================
+# ¥¤¥ó¥é¥¤¥ó¥á¥½¥Ã¥É
+#==============================================================================
+sub inline {
+       my $self = shift;
+       my $wiki = shift;
+       my $text = shift;
+       return Util::escapeHTML($text);
+}
+
+1;