コード例 #1
0
ファイル: ParsedownExtra.php プロジェクト: BlueBreeze/typecho
 protected function identifyLink($Excerpt)
 {
     $Span = parent::identifyLink($Excerpt);
     $remainder = substr($Excerpt['text'], $Span['extent']);
     if (preg_match('/^[ ]*' . $this->attributesPattern . '/', $remainder, $matches)) {
         $Span['element']['attributes'] += $this->parseAttributes($matches[1]);
         $Span['extent'] += strlen($matches[0]);
     }
     return $Span;
 }