From c80ec9f10c23066c160fcff9a4da90cd483d54b9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 21 Feb 2014 19:06:53 -0500 Subject: Replace Mardown parser by another one to be able to disallow markup or entities --- vendor/Michelf/MarkdownInterface.php | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vendor/Michelf/MarkdownInterface.php (limited to 'vendor/Michelf/MarkdownInterface.php') diff --git a/vendor/Michelf/MarkdownInterface.php b/vendor/Michelf/MarkdownInterface.php new file mode 100644 index 00000000..22c571a0 --- /dev/null +++ b/vendor/Michelf/MarkdownInterface.php @@ -0,0 +1,37 @@ + +# +# Original Markdown +# Copyright (c) 2004-2006 John Gruber +# +# +namespace Michelf; + + +# +# Markdown Parser Interface +# + +interface MarkdownInterface { + + # + # Initialize the parser and return the result of its transform method. + # This will work fine for derived classes too. + # + public static function defaultTransform($text); + + # + # Main function. Performs some preprocessing on the input text + # and pass it through the document gamut. + # + public function transform($text); + +} + + +?> \ No newline at end of file -- cgit v1.2.3