* @since 2.0 */ abstract class AbstractMarkdown { /** * @var MarkdownExtra */ protected static $markdown; /** * Converts markdown into HTML * * @param string $content * @param array $config * @return string */ public static function process($content, $config = array()) { if (static::$markdown === null) { static::$markdown = new MarkdownExtra(); } foreach ($config as $name => $value) { static::$markdown->{$name} = $value; } return static::$markdown->transform($content); } }