aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2018-07-31 14:12:49 -0400
committerGitHub <noreply@github.com>2018-07-31 14:12:49 -0400
commit1e7fd3f236f63f9ca9b85de9cd172b77e7f9be80 (patch)
tree480f31abf71a8c205d04f961478fd579680b570f /markdown/extensions
parent7dad12c07e3e701da42474696398cb32e5c9979f (diff)
downloadmarkdown-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/extensions')
-rw-r--r--markdown/extensions/attr_list.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py
index 84b852d..ab7d6b9 100644
--- a/markdown/extensions/attr_list.py
+++ b/markdown/extensions/attr_list.py
@@ -21,7 +21,6 @@ from __future__ import absolute_import
from __future__ import unicode_literals
from . import Extension
from ..treeprocessors import Treeprocessor
-from ..util import isBlockLevel
import re
@@ -79,7 +78,7 @@ class AttrListTreeprocessor(Treeprocessor):
def run(self, doc):
for elem in doc.iter():
- if isBlockLevel(elem.tag):
+ if self.md.is_block_level(elem.tag):
# Block level: check for attrs on last line of text
RE = self.BLOCK_RE
if isheader(elem) or elem.tag == 'dt':