aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-10-19 23:37:33 -0400
committerWaylan Limberg <waylan@gmail.com>2008-10-19 23:37:33 -0400
commit3fc06a968ee2548254efd08d46b5a4d46ac7e3a8 (patch)
tree49fe064ba68566383c744793fed85389789ad18a
parent53f95cde694975e556db7569d3bd89f84459e7bb (diff)
downloadmarkdown-3fc06a968ee2548254efd08d46b5a4d46ac7e3a8.tar.gz
markdown-3fc06a968ee2548254efd08d46b5a4d46ac7e3a8.tar.bz2
markdown-3fc06a968ee2548254efd08d46b5a4d46ac7e3a8.zip
Cleaned up some commented code from previous commit and added Jack Miller to docs/AUTHORS for his toc extension.
-rw-r--r--docs/AUTHORS1
-rwxr-xr-xmarkdown.py15
2 files changed, 1 insertions, 15 deletions
diff --git a/docs/AUTHORS b/docs/AUTHORS
index 1fa6bd0..f0eee56 100644
--- a/docs/AUTHORS
+++ b/docs/AUTHORS
@@ -33,6 +33,7 @@ Kjell Magne Fauske
G. Clark Haynes
Daniel Krech
Steward Midwinter
+Jack Miller
Neale Pickett
Malcolm Tredinnick
Ben Wilson
diff --git a/markdown.py b/markdown.py
index 437530c..c16b6d6 100755
--- a/markdown.py
+++ b/markdown.py
@@ -1217,7 +1217,6 @@ class InlineProcessor(Treeprocessor):
"""
def __init__ (self, md):
- #self.__inlinePatterns = patterns
self.__placeholder_prefix = INLINE_PLACEHOLDER_PREFIX
self.__placeholder_suffix = ETX
self.__placeholder_length = 4 + len(self.__placeholder_prefix) \
@@ -1872,16 +1871,6 @@ class Markdown:
self.htmlStash.reset()
self.references.clear()
- #HTML_BLOCK_PREPROCESSOR.stash = self.htmlStash
- #LINE_PREPROCESSOR.stash = self.htmlStash
- #REFERENCE_PREPROCESSOR.references = self.references
- #HTML_PATTERN.stash = self.htmlStash
- #ENTITY_PATTERN.stash = self.htmlStash
- #REFERENCE_PATTERN.references = self.references
- #IMAGE_REFERENCE_PATTERN.references = self.references
- #RAWHTMLTEXTPOSTPROCESSOR.stash = self.htmlStash
- #RAWHTMLTEXTPOSTPROCESSOR.safeMode = self.safeMode
-
for extension in self.registeredExtensions:
extension.reset()
@@ -1913,10 +1902,6 @@ class Markdown:
# Parse the high-level elements.
root = self.parser.parseDocument(self.lines).getroot()
- # Apply inline patterns
- #inlineProcessor = InlineProcessor(self.inlinePatterns.heapsorted())
- #root = inlineProcessor.applyInlinePatterns(tree).getroot()
-
# Run the tree-processors
for treeprocessor in self.treeprocessors.heapsorted():
newRoot = treeprocessor.run(root)