/** * Match * * _italic_ * * _italic_gfm_style_ */ public function __construct() { $startPattern = '_(?=(?:\\\\.|[^\\n_\\\\])*_)'; if ($this->isModeGfm()) { $startPattern = '_(?=(?:\\\\.|[^\\n_\\\\])*_\\w)'; } parent::__construct(self::NAME, self::ORDER, $startPattern, '_'); }
/** * Match * * ``code`` * `` ` `` */ public function __construct() { parent::__construct(self::NAME, self::ORDER, '``(?=[^\\n]*``)', '``'); }
/** * Match * * **strong** */ public function __construct() { parent::__construct(self::NAME, self::ORDER, '~~(?=(?:\\\\.|[^\\n~\\\\])*~~)', '~~(?=[^~])'); }
/** * Match * * **strong** */ public function __construct() { parent::__construct(self::NAME, self::ORDER, '\\*\\*(?=(?:\\\\.|[^\\n*\\\\])*\\*\\*)', '\\*\\*(?=[^\\*])'); }
/** * Match * * @[inline math expression] */ public function __construct() { parent::__construct(self::NAME, self::ORDER, '@\\[(?=[^\\n]*\\])', '\\]'); }
/** * Match * * __strong__ */ public function __construct() { parent::__construct(self::NAME, self::ORDER, '__(?=(?:\\\\.|[^\\n_\\\\])*__)', '__(?=[^_])'); }