diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-12-29 18:28:13 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-12-29 18:28:13 -0500 |
commit | eac0cc2ac97fd1aeaf8a267917eb09fbf3b53ab2 (patch) | |
tree | 159fbb946e893001a4c48c48be99b8ef31d1c824 /markdown | |
parent | b0ff2da7172e411c312f228290968f63de3bdf81 (diff) | |
download | python-markdown-md3.tar.gz |
Cleanup backport of 2.6.x bugfixes.md3
Diffstat (limited to 'markdown')
-rw-r--r-- | markdown/blockprocessors.py | 2 | ||||
-rw-r--r-- | markdown/preprocessors.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 39719aa..332c3a7 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -300,6 +300,8 @@ class OListProcessor(BlockProcessor): """ Process ordered list blocks. """ TAG = 'ol' + # Lazy ol - ignore startswith + LAZY_OL = True # The integer (python string) with which the lists starts (default=1) # Eg: If list is intialized as) # 3. Item diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py index be1b504..74d1c9f 100644 --- a/markdown/preprocessors.py +++ b/markdown/preprocessors.py @@ -179,7 +179,7 @@ class HtmlBlockPreprocessor(Preprocessor): right_listindex -= 1 if right_listindex <= i: right_listindex = i + 1 - placeholder = self.markdown.htmlStash.store('\n\n'.join( + placeholder = self.md.htmlStash.store('\n\n'.join( items[i:right_listindex])) del items[i:right_listindex] items.insert(i, placeholder) |