parameters: (self, root)
docstring: Find code blocks and store in htmlStash.
docstring_summary: Find code blocks and store in htmlStash.
docstring_tokens: Find code blocks and store in htmlStash .
function: def run(self, root):
          """Find code blocks and store in htmlStash."""
  
          blocks = root.iter('pre')
          for block in blocks:
              if len(block) == 1 and block[0].tag == 'code':
                  code = Highlight(
                      guess_lang=self.config['guess_lang'],
                      pygments_style=self.config['pygments_style'],
                      use_pygments=self.config['use_pygments'],
                      noclasses=self.config['noclasses'],
                      linenums=self.config['linenums'],
                      extend_pygments_lang=self.config['extend_pygments_lang'],
                      sublime_hl=self.config['sublime_hl'],
                      sublime_wrap=self.config['sublime_wrap']
                  )
                  placeholder = self.markdown.htmlStash.store(
                      code.highlight(
                          block[0].text,
                          ''
                      ),
                      safe=True
                  )
  
                  # Clear codeblock in etree instance
                  block.clear()
                  # Change to p element which will later
                  # be removed when inserting raw html
                  block.tag = 'p'
                  block.text = placeholder
function_tokens: def run ( self , root ) : blocks = root . iter ( 'pre' ) for block in blocks : if len ( block ) == 1 and block [ 0 ] . tag == 'code' : code = Highlight ( guess_lang = self . config [ 'guess_lang' ] , pygments_style = self . config [ 'pygments_style' ] , use_pygments = self . config [ 'use_pygments' ] , noclasses = self . config [ 'noclasses' ] , linenums = self . config [ 'linenums' ] , extend_pygments_lang = self . config [ 'extend_pygments_lang' ] , sublime_hl = self . config [ 'sublime_hl' ] , sublime_wrap = self . config [ 'sublime_wrap' ] ) placeholder = self . markdown . htmlStash . store ( code . highlight ( block [ 0 ] . text , '' ) , safe = True ) # Clear codeblock in etree instance block . clear ( ) # Change to p element which will later # be removed when inserting raw html block . tag = 'p' block . text = placeholder