This commit is contained in:
Bridger Maxwell
2012-01-14 00:10:08 -05:00
4 changed files with 0 additions and 6 deletions

View File

@@ -1,7 +1,5 @@
#!/usr/bin/env python
print "Hello"
'''
WikiLink Extention for Python-Markdown
======================================

View File

@@ -30,7 +30,6 @@ class CircuitExtension(markdown.Extension):
md.inlinePatterns.add(name, pattern, "<reference")
def extendMarkdown(self, md, md_globals):
print "Here"
self.add_inline(md, 'circuit', CircuitLink, r'^circuit:(?P<name>[a-zA-Z0-9]*)$')
class CircuitLink(markdown.inlinepatterns.Pattern):
@@ -43,5 +42,4 @@ class CircuitLink(markdown.inlinepatterns.Pattern):
def makeExtension(configs=None) :
print "Here"
return CircuitExtension(configs=configs)

View File

@@ -247,7 +247,6 @@ class Revision(models.Model):
# Create pre-parsed contents - no need to parse on-the-fly
ext = WIKI_MARKDOWN_EXTENSIONS
print "Waka", WIKI_MARKDOWN_EXTENSIONS
ext += ["wikilinks(base_url=%s/)" % reverse('wiki_view', args=('',))]
self.contents_parsed = markdown(self.contents,
extensions=ext,

View File

@@ -94,7 +94,6 @@ WIKI_MARKDOWN_EXTENSIONS = getattr(settings, 'SIMPLE_WIKI_MARKDOWN_EXTENSIONS',
'circuit'
])
print WIKI_MARKDOWN_EXTENSIONS
WIKI_IMAGE_EXTENSIONS = getattr(settings,
'SIMPLE_WIKI_IMAGE_EXTENSIONS',