Esempio n. 1
0
 protected function blockSetextHeader($line, array $block = null)
 {
     $header = parent::blockSetextHeader($line, $block);
     if (null !== $header) {
         $header = $this->addHeaderInToc();
     }
     return $header;
 }
Esempio n. 2
0
 protected function blockSetextHeader($Line, array $Block = null)
 {
     $Block = parent::blockSetextHeader($Line, $Block);
     if (preg_match('/[ ]*{(' . $this->regexAttribute . '+)}[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE)) {
         $attributeString = $matches[1][0];
         $Block['element']['attributes'] = $this->parseAttributeData($attributeString);
         $Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
     }
     return $Block;
 }
Esempio n. 3
0
 protected function blockSetextHeader($line, array $block = null)
 {
     return $this->addHeaderInToc(parent::blockSetextHeader($line, $block));
 }