#NEWLINE# def header( self , text , level ) : #NEWLINE# #INDENT# if ( ( level == 1 ) and re . match ( '\\d+' , text ) ) : #NEWLINE# #INDENT# return ( '#' + text ) #NEWLINE# #UNINDENT# return ( '<h%s>%s</h%s>' % ( text , text , level ) )