/**
  * Match
  *
  * _italic_
  *
  * _italic_gfm_style_
  */
 public function __construct()
 {
     $startPattern = '_(?=(?:\\\\.|[^\\n_\\\\])*_)';
     if ($this->isModeGfm()) {
         $startPattern = '_(?=(?:\\\\.|[^\\n_\\\\])*_\\w)';
     }
     parent::__construct(self::NAME, self::ORDER, $startPattern, '_');
 }
Ejemplo n.º 2
0
 /**
  * Match
  *
  * ``code``
  * `` ` ``
  */
 public function __construct()
 {
     parent::__construct(self::NAME, self::ORDER, '``(?=[^\\n]*``)', '``');
 }
 /**
  * Match
  *
  * **strong**
  */
 public function __construct()
 {
     parent::__construct(self::NAME, self::ORDER, '~~(?=(?:\\\\.|[^\\n~\\\\])*~~)', '~~(?=[^~])');
 }
Ejemplo n.º 4
0
 /**
  * Match
  *
  * **strong**
  */
 public function __construct()
 {
     parent::__construct(self::NAME, self::ORDER, '\\*\\*(?=(?:\\\\.|[^\\n*\\\\])*\\*\\*)', '\\*\\*(?=[^\\*])');
 }
Ejemplo n.º 5
0
 /**
  * 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_\\\\])*__)', '__(?=[^_])');
 }