original_string: protected function init($page, $defaults)
      {
          $grav = Grav::instance();
  
          $this->page = $page;
          $this->BlockTypes['{'] [] = 'TwigTag';
          $this->special_chars = ['>' => 'gt', '<' => 'lt', '"' => 'quot'];
  
          if ($defaults === null) {
              $defaults = (array)Grav::instance()['config']->get('system.pages.markdown');
          }
  
          $this->setBreaksEnabled($defaults['auto_line_breaks']);
          $this->setUrlsLinked($defaults['auto_url_links']);
          $this->setMarkupEscaped($defaults['escape_markup']);
          $this->setSpecialChars($defaults['special_chars']);
  
          $grav->fireEvent('onMarkdownInitialized', new Event(['markdown' => $this, 'page' => $page]));
  
      }
code: protected function init($page, $defaults)
      {
          $grav = Grav::instance();
  
          $this->page = $page;
          $this->BlockTypes['{'] [] = 'TwigTag';
          $this->special_chars = ['>' => 'gt', '<' => 'lt', '"' => 'quot'];
  
          if ($defaults === null) {
              $defaults = (array)Grav::instance()['config']->get('system.pages.markdown');
          }
  
          $this->setBreaksEnabled($defaults['auto_line_breaks']);
          $this->setUrlsLinked($defaults['auto_url_links']);
          $this->setMarkupEscaped($defaults['escape_markup']);
          $this->setSpecialChars($defaults['special_chars']);
  
          $grav->fireEvent('onMarkdownInitialized', new Event(['markdown' => $this, 'page' => $page]));
  
      }
code_tokens: protected function init ( $ page , $ defaults ) { $ grav = Grav :: instance ( ) ; $ this -> page = $ page ; $ this -> BlockTypes [ '{' ] [ ] = 'TwigTag' ; $ this -> special_chars = [ '>' => 'gt' , '<' => 'lt' , '"' => 'quot' ] ; if ( $ defaults === null ) { $ defaults = ( array ) Grav :: instance ( ) [ 'config' ] -> get ( 'system.pages.markdown' ) ; } $ this -> setBreaksEnabled ( $ defaults [ 'auto_line_breaks' ] ) ; $ this -> setUrlsLinked ( $ defaults [ 'auto_url_links' ] ) ; $ this -> setMarkupEscaped ( $ defaults [ 'escape_markup' ] ) ; $ this -> setSpecialChars ( $ defaults [ 'special_chars' ] ) ; $ grav -> fireEvent ( 'onMarkdownInitialized' , new Event ( [ 'markdown' => $ this , 'page' => $ page ] ) ) ; }
docstring: Initialization function to setup key variables needed by the MarkdownGravLinkTrait
  
  @param PageInterface $page
  @param array|null $defaults
docstring_tokens: Initialization function to setup key variables needed by the MarkdownGravLinkTrait