Esempio n. 1
0
 def extendMarkdown(self, md, md_globals):
     md.inlinePatterns.add(
         'InternalLinkDocumentsPattern',
         Document.LinkPattern(Document.DOCUMENT_LINK_REGEX, md), "_begin")
     md.inlinePatterns.add('InternalLinkPollsPattern',
                           Poll.LinkPattern(Poll.POLLS_LINK_REGEX, md),
                           "_begin")
Esempio n. 2
0
 def extendMarkdown(self, md):
     md.inlinePatterns.register(
         Document.LinkPattern(Document.DOCUMENT_LINK_REGEX, md),
         'InternalLinkDocumentsPattern', 200)
     md.inlinePatterns.register(Poll.LinkPattern(Poll.POLLS_LINK_REGEX, md),
                                'InternalLinkPollsPattern', 200)