diff options
Diffstat (limited to 'markdown/core.py')
-rw-r--r-- | markdown/core.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/core.py b/markdown/core.py index 4b8d1a6..06bf262 100644 --- a/markdown/core.py +++ b/markdown/core.py @@ -230,14 +230,14 @@ class Markdown(object): # Split into lines and run the line preprocessors. self.lines = source.split("\n") - for prep in self.preprocessors.values(): + for prep in self.preprocessors: self.lines = prep.run(self.lines) # Parse the high-level elements. root = self.parser.parseDocument(self.lines).getroot() # Run the tree-processors - for treeprocessor in self.treeprocessors.values(): + for treeprocessor in self.treeprocessors: newRoot = treeprocessor.run(root) if newRoot is not None: root = newRoot @@ -260,7 +260,7 @@ class Markdown(object): 'tags. Document=%r' % output.strip()) # Run the text post-processors - for pp in self.postprocessors.values(): + for pp in self.postprocessors: output = pp.run(output) return output.strip() |