From 76a3532b870d596e05de52169279874f4a86820a Mon Sep 17 00:00:00 2001 From: benjaoming Date: Thu, 7 Feb 2013 16:23:00 +0100 Subject: [PATCH] rm dupe lines --- wiki/plugins/macros/markdown_extensions.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wiki/plugins/macros/markdown_extensions.py b/wiki/plugins/macros/markdown_extensions.py index a1476074..962ca4e2 100644 --- a/wiki/plugins/macros/markdown_extensions.py +++ b/wiki/plugins/macros/markdown_extensions.py @@ -12,12 +12,6 @@ re_sq_short = r"'([^'\\]*(?:\\.[^'\\]*)*)'" MACRO_RE = re.compile(r'.*(\[(?P\w+)(?P\s\w+\:.+)*\]).*', re.IGNORECASE) KWARG_RE = re.compile(r'\s*(?P\w+)(:(?P([^\']+|%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"'([^'\\]*(?:\\.[^'\\]*)*)'" - -MACRO_RE = re.compile(r'.*(\[(?P%s)(?P\s\w+\:.+)*\]).*', re.IGNORECASE) -KWARG_RE = re.compile(r'\s*(?P\w+)(:(?P([^\']|%s)))?' % re_sq_short, re.IGNORECASE) - class SimplePreprocessorExtension(markdown.Extension): """Extend this class to create a simple [name arg:val] markdown tag and replace each tag with your own html stack""" -- 2.45.2