'Find code blocks and store in htmlStash.'

def run(self, root):

    blocks = root.iter(u'pre')
    for block in blocks:
        if ((len(block) == 1) and (block[0].tag == u'code')):
            code = CodeHilite(block[0].text, linenums=self.config[u'linenums'], guess_lang=self.config[u'guess_lang'], css_class=self.config[u'css_class'], style=self.config[u'pygments_style'], noclasses=self.config[u'noclasses'], tab_length=self.markdown.tab_length, use_pygments=self.config[u'use_pygments'])
            placeholder = self.markdown.htmlStash.store(code.hilite(), safe=True)
            block.clear()
            block.tag = u'p'
            block.text = placeholder
