Inheritance: implements League\CommonMark\Extension\ExtensionInterface
Exemple #1
0
 /**
  * @param string $inlineClass
  * @param InlineRendererInterface $renderer
  *
  * @return $this
  */
 public function addInlineRenderer($inlineClass, InlineRendererInterface $renderer)
 {
     if ($this->extensionsInitialized) {
         throw new \RuntimeException('Failed to add inline renderer - extensions have already been initialized');
     }
     $this->miscExtension->addInlineRenderer($inlineClass, $renderer);
     return $this;
 }
Exemple #2
0
 /**
  * @param string                  $inlineClass
  * @param InlineRendererInterface $renderer
  *
  * @return $this
  */
 public function addInlineRenderer($inlineClass, InlineRendererInterface $renderer)
 {
     $this->assertUninitialized('Failed to add inline renderer - extensions have already been initialized');
     $this->miscExtension->addInlineRenderer($inlineClass, $renderer);
     return $this;
 }