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