Markdown.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  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); // use original markdown flavor
  15. * $myHtml = Markdown::process($myText, 'gfm'); // use github flavored markdown
  16. * $myHtml = Markdown::process($myText, 'extra'); // use markdown extra
  17. * ```
  18. *
  19. * You can configure multiple flavors using the [[$flavors]] property.
  20. *
  21. * For more details please refer to the [Markdown library documentation](https://github.com/cebe/markdown#readme).
  22. *
  23. * > Note: The Markdown library works with PHPDoc annotations so if you use it together with
  24. * > PHP `opcache` make sure [it does not strip comments](https://secure.php.net/manual/en/opcache.configuration.php#ini.opcache.save-comments).
  25. *
  26. * @author Carsten Brandt <mail@cebe.cc>
  27. * @since 2.0
  28. */
  29. class Markdown extends BaseMarkdown
  30. {
  31. }