コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
    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)
コード例 #4
0
ファイル: test_hidden_hilite.py プロジェクト: tbille/docs
 def setUp(self):
     self.hidden_hilite = gfm.HiddenHiliteExtension([])
コード例 #5
0
ファイル: test_hidden_hilite.py プロジェクト: junohq/py-gfm
 def setUp(self):
     TestCase.setUp(self)
     self.hidden_hilite = gfm.HiddenHiliteExtension([])