diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-12-18 15:28:19 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-12-18 15:28:19 -0500 |
commit | 1441de1312384c361c597d7d0ef01f4f2b68a794 (patch) | |
tree | a041ae3e1b738667f8ed22af3f9688f43ad44e57 | |
parent | d6a747570a053f15dc4951689b7820248f2cc25f (diff) | |
download | markdown-1441de1312384c361c597d7d0ef01f4f2b68a794.tar.gz markdown-1441de1312384c361c597d7d0ef01f4f2b68a794.tar.bz2 markdown-1441de1312384c361c597d7d0ef01f4f2b68a794.zip |
Better fix for #164. Works in Python 2 & 3.
-rw-r--r-- | markdown/extensions/attr_list.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py index 8734e9f..00f92cd 100644 --- a/markdown/extensions/attr_list.py +++ b/markdown/extensions/attr_list.py @@ -67,10 +67,10 @@ class AttrListTreeprocessor(markdown.treeprocessors.Treeprocessor): 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) - NAME_RE = re.compile(r'[^A-Z_a-z\xc0-\xd6\xd8-\xf6\u00f8-\u02ff\u0370-\u037d' - '\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef' - '\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u10000-\ueffff' - '\-\.0-9\xb7\u0300-\u036f\u203f-\u2040]+') + NAME_RE = re.compile(r'[^A-Z_a-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02ff\u0370-\u037d' + r'\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef' + r'\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u10000-\ueffff' + r'\-\.0-9\u00b7\u0300-\u036f\u203f-\u2040]+') def run(self, doc): for elem in doc.getiterator(): |