diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-21 19:06:53 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-21 19:06:53 -0500 |
commit | c80ec9f10c23066c160fcff9a4da90cd483d54b9 (patch) | |
tree | 52b77dfd5b2a1acbfb05b24e4d11a2e19838ac36 /vendor/Michelf/MarkdownInterface.php | |
parent | 252b589c3498c0caf8a4da3dac79b3e0af98828f (diff) |
Replace Mardown parser by another one to be able to disallow markup or entities
Diffstat (limited to 'vendor/Michelf/MarkdownInterface.php')
-rw-r--r-- | vendor/Michelf/MarkdownInterface.php | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ +<?php +# +# Markdown - A text-to-HTML conversion tool for web writers +# +# PHP Markdown +# Copyright (c) 2004-2013 Michel Fortin +# <http://michelf.com/projects/php-markdown/> +# +# Original Markdown +# Copyright (c) 2004-2006 John Gruber +# <http://daringfireball.net/projects/markdown/> +# +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 |