diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2018-07-31 14:12:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 14:12:49 -0400 |
commit | 1e7fd3f236f63f9ca9b85de9cd172b77e7f9be80 (patch) | |
tree | 480f31abf71a8c205d04f961478fd579680b570f /markdown/postprocessors.py | |
parent | 7dad12c07e3e701da42474696398cb32e5c9979f (diff) | |
download | markdown-1e7fd3f236f63f9ca9b85de9cd172b77e7f9be80.tar.gz markdown-1e7fd3f236f63f9ca9b85de9cd172b77e7f9be80.tar.bz2 markdown-1e7fd3f236f63f9ca9b85de9cd172b77e7f9be80.zip |
Move isBlockLevel to class. (#693)
Allows users and/or extensions to alter the list of block level
elements. The old implementation remains with a DeprecationWarning.
Fixes #575.
Diffstat (limited to 'markdown/postprocessors.py')
-rw-r--r-- | markdown/postprocessors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/postprocessors.py b/markdown/postprocessors.py index 541da5d..cecb4ad 100644 --- a/markdown/postprocessors.py +++ b/markdown/postprocessors.py @@ -91,7 +91,7 @@ class RawHtmlPostprocessor(Postprocessor): if m.group(1)[0] in ('!', '?', '@', '%'): # Comment, php etc... return True - return util.isBlockLevel(m.group(1)) + return self.md.is_block_level(m.group(1)) return False |