Markdown.php 823 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2008 Yii Software LLC
  4. * @link http://www.yiiframework.com/
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\helpers;
  8. /**
  9. * Markdown provides an ability to transform markdown into HTML.
  10. *
  11. * Basic usage is the following:
  12. *
  13. * ```php
  14. * $myHtml = Markdown::process($myText);
  15. * ```
  16. *
  17. * If you want to configure the parser:
  18. *
  19. * ```php
  20. * $myHtml = Markdown::process($myText, [
  21. * 'fn_id_prefix' => 'footnote_',
  22. * ]);
  23. * ```
  24. *
  25. * Note that in order to use this helper you need to install "michelf/php-markdown" Composer package.
  26. *
  27. * For more details please refer to [PHP Markdown library documentation](http://michelf.ca/projects/php-markdown/).
  28. * @author Alexander Makarov <[email protected]>
  29. * @since 2.0
  30. */
  31. class Markdown extends BaseMarkdown
  32. {
  33. }