X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2FTextileMarkup.php;fp=plugins%2FTextileMarkup.php;h=29f700dcd1b233197007fe569ab96331b0a90aad;hb=6855525e48fad5de270500a5445c4f4ff85d8bda;hp=0000000000000000000000000000000000000000;hpb=e69709aa8ee6108a1197e46b45367ba8dab55a52;p=diogenes.git diff --git a/plugins/TextileMarkup.php b/plugins/TextileMarkup.php new file mode 100644 index 0000000..29f700d --- /dev/null +++ b/plugins/TextileMarkup.php @@ -0,0 +1,57 @@ +sample Textile markup pages."; + + + /** Is the plugin allowed with respect to a given write permission on a page ? + * + * @param $wperms + */ + function allow_wperms($wperms) + { + return 1; + } + + + /** Take the Wiki markup and return XHTML. + * + * @param $input + */ + function filter($input) + { + $textile = new Textile(); + return $textile->TextileThis($input); + } + +} + +?>