From 5bd7e1a807c3aadc186833014335c879002dcdd2 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Wed, 20 Jul 2016 12:38:32 +0300 Subject: [PATCH] links color modification --- reporting/md_color.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reporting/md_color.py b/reporting/md_color.py index 17e28c9..0b64904 100755 --- a/reporting/md_color.py +++ b/reporting/md_color.py @@ -150,9 +150,9 @@ inline_match={ 'bc':'${c}\\1','dc':'${m}\\1'}, # `code` 'code_special': {'re':re.compile(r'([`]+[^`]+[`]+)([!>])'), 'bc':'${c}\\1${g}\\2','dc':'${m}\\1${r}\\2'}, # `code`! or `code`> for markslider - 'link': {'re':re.compile(r'(\[)([^\]]+)(\])(\([^\)]+\))'), - 'bc':'${B}\\1${Z}\\2${B}\\3${U}\\4', - 'dc':'${b}\\1${Z}\\2${b}\\3${U}\\4'}, # [text](link) + 'link': {'re':re.compile(r'(\[)([^\]]+)(\])\(([^\)]+)\)'), + 'bc':'${B}\\1${Z}\\2${B}\\3(${U}\\4${u})', + 'dc':'${b}\\1${Z}\\2${b}\\3(${U}\\4${u})'}, # [text](link) 'image': {'re':re.compile(r'(!\[[^\]]+\]\([^\)]+\))'), 'bc':'${r}\\1','dc':'${g}\\1'}, # ![text](image) 'underline': {'re':re.compile(r'(^|\W)(__)([^_]+)(__)'),