Esempio n. 1
0
 protected function identifyAtx($Line)
 {
     $Block = parent::identifyAtx($Line);
     if (preg_match('/[ ]*' . $this->attributesPattern . '[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE)) {
         $attributeString = $matches[1][0];
         $Block['element']['attributes'] = $this->parseAttributes($attributeString);
         $Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
     }
     return $Block;
 }