def extendMarkdown(self, md, md_globals): # Built-in extensions gfmFencedCodeExtension().extendMarkdown(md) #FencedCodeExtension().extendMarkdown(md) #FencedCodeExtension().extendMarkdown(md, md_globals) #SmartEmphasisExtension().extendMarkdown(md, md_globals) #TableExtension().extendMarkdown(md, md_globals) TableExtension().extendMarkdown(md) # Custom extensions gfm.AutolinkExtension().extendMarkdown(md, md_globals) gfm.AutomailExtension().extendMarkdown(md, md_globals) # gfm.HiddenHiliteExtension([ # ('guess_lang', 'False'), # ('css_class', 'highlight') # ]).extendMarkdown(md, md_globals) # print(md_globals) # print(self.config) # print(dir(md)) # raise KeyboardInterrupt() #print(self.config) #gfm.HiddenHiliteExtension().extendMarkdown(md, md_globals) gfm.HiddenHiliteExtension().extendMarkdown(md, self.config) gfm.SemiSaneListExtension().extendMarkdown(md, md_globals) gfm.SpacedLinkExtension().extendMarkdown(md, md_globals) gfm.StrikethroughExtension().extendMarkdown(md, md_globals) gfm.TaskListExtension().extendMarkdown(md, md_globals)
def extendMarkdown(self, md, md_globals): # Built-in extensions FencedCodeExtension().extendMarkdown(md) TableExtension().extendMarkdown(md) # Custom extensions gfm.AutolinkExtension().extendMarkdown(md, md_globals) gfm.AutomailExtension().extendMarkdown(md, md_globals) gfm.HiddenHiliteExtension().extendMarkdown(md, self.config) gfm.SemiSaneListExtension().extendMarkdown(md, md_globals) gfm.SpacedLinkExtension().extendMarkdown(md, md_globals) gfm.StrikethroughExtension().extendMarkdown(md, md_globals) gfm.TaskListExtension().extendMarkdown(md, md_globals)
def extendMarkdown(self, md, md_globals): # Built-in extensions FencedCodeExtension().extendMarkdown(md, md_globals) SmartEmphasisExtension().extendMarkdown(md, md_globals) TableExtension().extendMarkdown(md, md_globals) # Custom extensions gfm.AutolinkExtension().extendMarkdown(md, md_globals) gfm.AutomailExtension().extendMarkdown(md, md_globals) gfm.HiddenHiliteExtension([ ('guess_lang', 'False'), ('css_class', 'highlight') ]).extendMarkdown(md, md_globals) gfm.SemiSaneListExtension().extendMarkdown(md, md_globals)
def setUp(self): self.hidden_hilite = gfm.HiddenHiliteExtension([])
def setUp(self): TestCase.setUp(self) self.hidden_hilite = gfm.HiddenHiliteExtension([])