From a96fee0591de5f3b628503591d1cad9d23d26140 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 12 Jun 2016 21:12:10 -0400 Subject: Attribute lists are not permitted to contain newlines. Fixes #482. --- markdown/extensions/attr_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown') diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py index 683bdf8..de39944 100644 --- a/markdown/extensions/attr_list.py +++ b/markdown/extensions/attr_list.py @@ -72,7 +72,7 @@ def isheader(elem): class AttrListTreeprocessor(Treeprocessor): - BASE_RE = r'\{\:?([^\}]*)\}' + BASE_RE = r'\{\:?([^\}\n]*)\}' HEADER_RE = re.compile(r'[ ]+%s[ ]*$' % BASE_RE) BLOCK_RE = re.compile(r'\n[ ]*%s[ ]*$' % BASE_RE) INLINE_RE = re.compile(r'^%s' % BASE_RE) -- cgit v1.2.3