@@ -82,12 +82,17 @@ def parse_color(text: str) -> str:
8282 color = None ,
8383 bgcolor = None ,
8484 bold = None ,
85+ dim = None ,
8586 underline = None ,
87+ doubleunderline = None ,
88+ curvyunderline = None ,
8689 strike = None ,
8790 italic = None ,
8891 blink = None ,
92+ blinkfast = None ,
8993 reverse = None ,
9094 hidden = None ,
95+ overline = None ,
9196)
9297
9398
@@ -143,6 +148,10 @@ def _parse_style_str(style_str: str) -> Attrs:
143148 attrs = attrs ._replace (blink = True )
144149 elif part == "noblink" :
145150 attrs = attrs ._replace (blink = False )
151+ elif part == "blinkfast" :
152+ attrs = attrs ._replace (blinkfast = True )
153+ elif part == "noblinkfast" :
154+ attrs = attrs ._replace (blinkfast = False )
146155 elif part == "reverse" :
147156 attrs = attrs ._replace (reverse = True )
148157 elif part == "noreverse" :
@@ -151,6 +160,22 @@ def _parse_style_str(style_str: str) -> Attrs:
151160 attrs = attrs ._replace (hidden = True )
152161 elif part == "nohidden" :
153162 attrs = attrs ._replace (hidden = False )
163+ elif part == "dim" :
164+ attrs = attrs ._replace (dim = True )
165+ elif part == "nodim" :
166+ attrs = attrs ._replace (dim = False )
167+ elif part == "doubleunderline" :
168+ attrs = attrs ._replace (doubleunderline = True )
169+ elif part == "nodoubleunderline" :
170+ attrs = attrs ._replace (doubleunderline = False )
171+ elif part == "curvyunderline" :
172+ attrs = attrs ._replace (curvyunderline = True )
173+ elif part == "nocurvyunderline" :
174+ attrs = attrs ._replace (curvyunderline = False )
175+ elif part == "overline" :
176+ attrs = attrs ._replace (overline = True )
177+ elif part == "nooverline" :
178+ attrs = attrs ._replace (overline = False )
154179
155180 # Pygments properties that we ignore.
156181 elif part in ("roman" , "sans" , "mono" ):
@@ -339,12 +364,17 @@ def _or(*values: _T) -> _T:
339364 color = _or ("" , * [a .color for a in list_of_attrs ]),
340365 bgcolor = _or ("" , * [a .bgcolor for a in list_of_attrs ]),
341366 bold = _or (False , * [a .bold for a in list_of_attrs ]),
367+ dim = _or (False , * [a .dim for a in list_of_attrs ]),
342368 underline = _or (False , * [a .underline for a in list_of_attrs ]),
369+ doubleunderline = _or (False , * [a .doubleunderline for a in list_of_attrs ]),
370+ curvyunderline = _or (False , * [a .curvyunderline for a in list_of_attrs ]),
343371 strike = _or (False , * [a .strike for a in list_of_attrs ]),
344372 italic = _or (False , * [a .italic for a in list_of_attrs ]),
345373 blink = _or (False , * [a .blink for a in list_of_attrs ]),
374+ blinkfast = _or (False , * [a .blinkfast for a in list_of_attrs ]),
346375 reverse = _or (False , * [a .reverse for a in list_of_attrs ]),
347376 hidden = _or (False , * [a .hidden for a in list_of_attrs ]),
377+ overline = _or (False , * [a .overline for a in list_of_attrs ]),
348378 )
349379
350380
0 commit comments