diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2016-06-12 21:12:10 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2016-06-12 21:12:58 -0400 |
commit | a96fee0591de5f3b628503591d1cad9d23d26140 (patch) | |
tree | 4051895137aa99dd6a965f65f14a350e612c41da /markdown/extensions | |
parent | f3f768770ea62ff567c229b342ca0dca79b9da3c (diff) | |
download | markdown-a96fee0591de5f3b628503591d1cad9d23d26140.tar.gz markdown-a96fee0591de5f3b628503591d1cad9d23d26140.tar.bz2 markdown-a96fee0591de5f3b628503591d1cad9d23d26140.zip |
Attribute lists are not permitted to contain newlines. Fixes #482.
Diffstat (limited to 'markdown/extensions')
-rw-r--r-- | markdown/extensions/attr_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |