checkbox coloring
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user