MarkdownInterface.php 706 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. #
  3. # Markdown - A text-to-HTML conversion tool for web writers
  4. #
  5. # PHP Markdown
  6. # Copyright (c) 2004-2014 Michel Fortin
  7. # <http://michelf.com/projects/php-markdown/>
  8. #
  9. # Original Markdown
  10. # Copyright (c) 2004-2006 John Gruber
  11. # <http://daringfireball.net/projects/markdown/>
  12. #
  13. namespace Michelf;
  14. #
  15. # Markdown Parser Interface
  16. #
  17. interface MarkdownInterface {
  18. #
  19. # Initialize the parser and return the result of its transform method.
  20. # This will work fine for derived classes too.
  21. #
  22. public static function defaultTransform($text);
  23. #
  24. # Main function. Performs some preprocessing on the input text
  25. # and pass it through the document gamut.
  26. #
  27. public function transform($text);
  28. }