Removed wiki print statements
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
print "Hello"
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
WikiLink Extention for Python-Markdown
|
WikiLink Extention for Python-Markdown
|
||||||
======================================
|
======================================
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ class CircuitExtension(markdown.Extension):
|
|||||||
md.inlinePatterns.add(name, pattern, "<reference")
|
md.inlinePatterns.add(name, pattern, "<reference")
|
||||||
|
|
||||||
def extendMarkdown(self, md, md_globals):
|
def extendMarkdown(self, md, md_globals):
|
||||||
print "Here"
|
|
||||||
self.add_inline(md, 'circuit', CircuitLink, r'^circuit:(?P<name>[a-zA-Z0-9]*)$')
|
self.add_inline(md, 'circuit', CircuitLink, r'^circuit:(?P<name>[a-zA-Z0-9]*)$')
|
||||||
|
|
||||||
class CircuitLink(markdown.inlinepatterns.Pattern):
|
class CircuitLink(markdown.inlinepatterns.Pattern):
|
||||||
@@ -39,5 +38,4 @@ class CircuitLink(markdown.inlinepatterns.Pattern):
|
|||||||
|
|
||||||
|
|
||||||
def makeExtension(configs=None) :
|
def makeExtension(configs=None) :
|
||||||
print "Here"
|
|
||||||
return CircuitExtension(configs=configs)
|
return CircuitExtension(configs=configs)
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
# Source: https://github.com/mayoff/python-markdown-mathjax
|
# Source: https://github.com/mayoff/python-markdown-mathjax
|
||||||
|
|
||||||
print "Hello"
|
|
||||||
|
|
||||||
import markdown
|
import markdown
|
||||||
|
|
||||||
class MathJaxPattern(markdown.inlinepatterns.Pattern):
|
class MathJaxPattern(markdown.inlinepatterns.Pattern):
|
||||||
|
|||||||
@@ -247,7 +247,6 @@ class Revision(models.Model):
|
|||||||
|
|
||||||
# Create pre-parsed contents - no need to parse on-the-fly
|
# Create pre-parsed contents - no need to parse on-the-fly
|
||||||
ext = WIKI_MARKDOWN_EXTENSIONS
|
ext = WIKI_MARKDOWN_EXTENSIONS
|
||||||
print "Waka", WIKI_MARKDOWN_EXTENSIONS
|
|
||||||
ext += ["wikilinks(base_url=%s/)" % reverse('wiki_view', args=('',))]
|
ext += ["wikilinks(base_url=%s/)" % reverse('wiki_view', args=('',))]
|
||||||
self.contents_parsed = markdown(self.contents,
|
self.contents_parsed = markdown(self.contents,
|
||||||
extensions=ext,
|
extensions=ext,
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ WIKI_MARKDOWN_EXTENSIONS = getattr(settings, 'SIMPLE_WIKI_MARKDOWN_EXTENSIONS',
|
|||||||
'circuit'
|
'circuit'
|
||||||
])
|
])
|
||||||
|
|
||||||
print WIKI_MARKDOWN_EXTENSIONS
|
|
||||||
|
|
||||||
WIKI_IMAGE_EXTENSIONS = getattr(settings,
|
WIKI_IMAGE_EXTENSIONS = getattr(settings,
|
||||||
'SIMPLE_WIKI_IMAGE_EXTENSIONS',
|
'SIMPLE_WIKI_IMAGE_EXTENSIONS',
|
||||||
|
|||||||
Reference in New Issue
Block a user