<s> """<STR_LIT>""" <EOL> import markdown <EOL> MAX_LEN = <NUM_LIT> <EOL> class AutoboldPreprocessor ( markdown . preprocessors . Preprocessor ) : <EOL> def run ( self , lines ) : <EOL> """<STR_LIT>""" <EOL> line = lines [ <NUM_LIT:0> ] <EOL> if line . startswith ( '<STR_LIT>' ) or len ( line ) > MAX_LEN : <EOL> return lines <EOL> else : <EOL> return [ "<STR_LIT>" + line ] + lines [ <NUM_LIT:1> : ] <EOL> class AutoboldExtension ( markdown . Extension ) : <EOL> """<STR_LIT>""" <EOL> def extendMarkdown ( self , md , md_globals ) : <EOL> md . preprocessors [ '<STR_LIT>' ] = AutoboldPreprocessor ( md ) <EOL> def makeExtension ( ** kwargs ) : <EOL> return AutoboldExtension ( ** kwargs ) </s>
