checkbox coloring

This commit is contained in:
q
2016-06-15 23:07:49 +03:00
parent 7da4a5f0ab
commit ac312a024b

View File

@@ -157,8 +157,10 @@ inline_match={
'bc':'\\1\\2${U}\\3${Z}\\4','dc':'\\1\\2${U}\\3${Z}\\4'}, # __underline__
'strikethrough': {'re':re.compile(r'(~~)([^~]+)(~~)'),
'bc':'\\1${st}\\2${so}\\3','dc':'\\1${st}\\2${so}\\3'}, # ~~strike~~
'checkbox': {'re':re.compile(r'(\[[x ]\])'),
'bc':'${y}\\1','dc':'${r}\\1'}, # [x] [ ]
}
inlines=['bold1','bold2','code_special','code','image','link','underline','strikethrough']
inlines=['bold1','bold2','code_special','code','image','link','underline','strikethrough', 'checkbox']
if __name__ == "__main__":
opts=setup_options()