<s> """<STR_LIT>""" <EOL> import markdown <EOL> from markdown . inlinepatterns import SimpleTagPattern <EOL> SUBSCRIPT_RE = r'<STR_LIT>' <EOL> class SubscriptExtension ( markdown . Extension ) : <EOL> """<STR_LIT>""" <EOL> def extendMarkdown ( self , md , md_globals ) : <EOL> """<STR_LIT>""" <EOL> md . inlinePatterns . add ( '<STR_LIT>' , SimpleTagPattern ( SUBSCRIPT_RE , '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> def makeExtension ( configs = None ) : <EOL> return SubscriptExtension ( configs = configs ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> import doctest <EOL> doctest . testmod ( ) </s>
