Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
|
||
} | ||
|
||
|
||
?> |