Moodle release 2.8.8
[moodle.git] / lib / markdown / MarkdownInterface.php
blobf8367ed5cdbf6383115933175c78d55b5414c8d3
1 <?php
3 # Markdown - A text-to-HTML conversion tool for web writers
5 # PHP Markdown
6 # Copyright (c) 2004-2014 Michel Fortin
7 # <http://michelf.com/projects/php-markdown/>
9 # Original Markdown
10 # Copyright (c) 2004-2006 John Gruber
11 # <http://daringfireball.net/projects/markdown/>
13 namespace Michelf;
17 # Markdown Parser Interface
20 interface MarkdownInterface {
23 # Initialize the parser and return the result of its transform method.
24 # This will work fine for derived classes too.
26 public static function defaultTransform($text);
29 # Main function. Performs some preprocessing on the input text
30 # and pass it through the document gamut.
32 public function transform($text);