summaryrefslogtreecommitdiff
path: root/library/Michelf/MarkdownInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Michelf/MarkdownInterface.php')
-rw-r--r--library/Michelf/MarkdownInterface.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/library/Michelf/MarkdownInterface.php b/library/Michelf/MarkdownInterface.php
new file mode 100644
index 0000000000..22c571a0d0
--- /dev/null
+++ b/library/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