fix bold re. adding suport for slide alignment

This commit is contained in:
q
2016-06-19 22:01:57 +03:00
parent 7a63b46cab
commit 7fdaf6a23a
2 changed files with 14 additions and 7 deletions

View File

@@ -142,10 +142,10 @@ block_match={
blocks=['block_quote', 'multiline_code','hrule', 'heading','lheading','list_bullet', 'block_code', 'text', 'empty']
inline_match={
'bold1': {'re':re.compile(r'(^| )(_[^_]+_)'),
'bc':'${W}\\1\\2','dc':'${W}\\1\\2'}, # _bold_
'bold2': {'re':re.compile(r'(^| )(\*{1,2}[^\*]+\*{1,2})'),
'bc':'${W}\\1\\2','dc':'${W}\\1\\2'}, # **bold**
'bold1': {'re':re.compile(r'(^| |})(_[^_]+_)'),
'bc':'\\1${W}\\2','dc':'${W}\\1\\2'}, # _bold_
'bold2': {'re':re.compile(r'(^| |})(\*{1,2}[^\*]+\*{1,2})'),
'bc':'\\1${W}\\2','dc':'${W}\\1\\2'}, # **bold**
'code': {'re':re.compile(r'([`]+[^`]+[`]+)'),
'bc':'${c}\\1','dc':'${m}\\1'}, # `code`
'code_special': {'re':re.compile(r'([`]+[^`]+[`]+)([!>])'),