~netlandish/django-wiki

ece12393297b2d8147bb19e6d2a3f3a8f182ff91 — benjaoming 11 years ago abe7282 + 94e6035
Merge branch 'master' of github.com:benjaoming/django-wiki
1 files changed, 1 insertions(+), 1 deletions(-)

M wiki/plugins/macros/markdown_extensions.py
M wiki/plugins/macros/markdown_extensions.py => wiki/plugins/macros/markdown_extensions.py +1 -1
@@ 10,7 10,7 @@ from django.template import Context
re_sq_short = r"'([^'\\]*(?:\\.[^'\\]*)*)'"

MACRO_RE = re.compile(r'.*(\[(?P<macro>\w+)(?P<kwargs>\s\w+\:.+)*\]).*', re.IGNORECASE)
KWARG_RE = re.compile(r'\s*(?P<arg>\w+)(:(?P<value>([^\']|%s)))?' % re_sq_short, re.IGNORECASE)
KWARG_RE = re.compile(r'\s*(?P<arg>\w+)(:(?P<value>([^\']+|%s)))?' % re_sq_short, re.IGNORECASE)

# See: http://stackoverflow.com/questions/430759/regex-for-managing-escaped-characters-for-items-like-string-literals
re_sq_short = r"'([^'\\]*(?:\\.[^'\\]*)*)'"