diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index 094b0ee..1224222 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -17,7 +17,7 @@ namespace Michelf; # Markdown Parser Class # -class Markdown { +class Markdown implements MarkdownInterface { ### Version ### diff --git a/Michelf/MarkdownInterface.php b/Michelf/MarkdownInterface.php new file mode 100644 index 0000000..22c571a --- /dev/null +++ b/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