@@ -81,12 +81,17 @@ def parse_color(text: str) -> str:
81
81
color = None ,
82
82
bgcolor = None ,
83
83
bold = None ,
84
+ dim = None ,
84
85
underline = None ,
86
+ doubleunderline = None ,
87
+ curvyunderline = None ,
85
88
strike = None ,
86
89
italic = None ,
87
90
blink = None ,
91
+ blinkfast = None ,
88
92
reverse = None ,
89
93
hidden = None ,
94
+ overline = None ,
90
95
)
91
96
92
97
@@ -142,6 +147,10 @@ def _parse_style_str(style_str: str) -> Attrs:
142
147
attrs = attrs ._replace (blink = True )
143
148
elif part == "noblink" :
144
149
attrs = attrs ._replace (blink = False )
150
+ elif part == "blinkfast" :
151
+ attrs = attrs ._replace (blinkfast = True )
152
+ elif part == "noblinkfast" :
153
+ attrs = attrs ._replace (blinkfast = False )
145
154
elif part == "reverse" :
146
155
attrs = attrs ._replace (reverse = True )
147
156
elif part == "noreverse" :
@@ -150,6 +159,22 @@ def _parse_style_str(style_str: str) -> Attrs:
150
159
attrs = attrs ._replace (hidden = True )
151
160
elif part == "nohidden" :
152
161
attrs = attrs ._replace (hidden = False )
162
+ elif part == "dim" :
163
+ attrs = attrs ._replace (dim = True )
164
+ elif part == "nodim" :
165
+ attrs = attrs ._replace (dim = False )
166
+ elif part == "doubleunderline" :
167
+ attrs = attrs ._replace (doubleunderline = True )
168
+ elif part == "nodoubleunderline" :
169
+ attrs = attrs ._replace (doubleunderline = False )
170
+ elif part == "curvyunderline" :
171
+ attrs = attrs ._replace (curvyunderline = True )
172
+ elif part == "nocurvyunderline" :
173
+ attrs = attrs ._replace (curvyunderline = False )
174
+ elif part == "overline" :
175
+ attrs = attrs ._replace (overline = True )
176
+ elif part == "nooverline" :
177
+ attrs = attrs ._replace (overline = False )
153
178
154
179
# Pygments properties that we ignore.
155
180
elif part in ("roman" , "sans" , "mono" ):
@@ -338,12 +363,17 @@ def _or(*values: _T) -> _T:
338
363
color = _or ("" , * [a .color for a in list_of_attrs ]),
339
364
bgcolor = _or ("" , * [a .bgcolor for a in list_of_attrs ]),
340
365
bold = _or (False , * [a .bold for a in list_of_attrs ]),
366
+ dim = _or (False , * [a .dim for a in list_of_attrs ]),
341
367
underline = _or (False , * [a .underline for a in list_of_attrs ]),
368
+ doubleunderline = _or (False , * [a .doubleunderline for a in list_of_attrs ]),
369
+ curvyunderline = _or (False , * [a .curvyunderline for a in list_of_attrs ]),
342
370
strike = _or (False , * [a .strike for a in list_of_attrs ]),
343
371
italic = _or (False , * [a .italic for a in list_of_attrs ]),
344
372
blink = _or (False , * [a .blink for a in list_of_attrs ]),
373
+ blinkfast = _or (False , * [a .blinkfast for a in list_of_attrs ]),
345
374
reverse = _or (False , * [a .reverse for a in list_of_attrs ]),
346
375
hidden = _or (False , * [a .hidden for a in list_of_attrs ]),
376
+ overline = _or (False , * [a .overline for a in list_of_attrs ]),
347
377
)
348
378
349
379
0 commit comments