Ejemplo n.º 1
0
 private function modifyInternalLinks()
 {
     if (!is_null($this->_parsed_markdown)) {
         $linker = new Linker($this->_tree->getSearch());
         foreach ($linker->getInternalLinks($this->_parsed_markdown) as $internal_link) {
             $linker->modifyInternalLink($internal_link);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetInternalLinksFailsOnNodeWithoutOwnerDocument()
 {
     $linker = new Linker(new Search($this->test_options));
     $node = new \DOMElement('test', 'unit');
     $linker->getInternalLinks($node);
 }