diff options
-rw-r--r-- | markdown/blockparser.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/markdown/blockparser.py b/markdown/blockparser.py index fae136c..9b59a97 100644 --- a/markdown/blockparser.py +++ b/markdown/blockparser.py @@ -89,9 +89,10 @@ class BlockParser: """ while blocks: - for processor in self.blockprocessors.values(): - if processor.test(parent, blocks[0]): - processor.run(parent, blocks) - break + for processor in self.blockprocessors.values(): + if processor.test(parent, blocks[0]): + if processor.run(parent, blocks) is not False: + # run returns True or None + break |