@@ -81,12 +81,17 @@ def parse_color(text: str) -> str:
8181 color = None ,
8282 bgcolor = None ,
8383 bold = None ,
84+ dim = None ,
8485 underline = None ,
86+ doubleunderline = None ,
87+ curvyunderline = None ,
8588 strike = None ,
8689 italic = None ,
8790 blink = None ,
91+ blinkfast = None ,
8892 reverse = None ,
8993 hidden = None ,
94+ overline = None ,
9095)
9196
9297
@@ -142,6 +147,10 @@ def _parse_style_str(style_str: str) -> Attrs:
142147 attrs = attrs ._replace (blink = True )
143148 elif part == "noblink" :
144149 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 )
145154 elif part == "reverse" :
146155 attrs = attrs ._replace (reverse = True )
147156 elif part == "noreverse" :
@@ -150,6 +159,22 @@ def _parse_style_str(style_str: str) -> Attrs:
150159 attrs = attrs ._replace (hidden = True )
151160 elif part == "nohidden" :
152161 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 )
153178
154179 # Pygments properties that we ignore.
155180 elif part in ("roman" , "sans" , "mono" ):
@@ -338,12 +363,17 @@ def _or(*values: _T) -> _T:
338363 color = _or ("" , * [a .color for a in list_of_attrs ]),
339364 bgcolor = _or ("" , * [a .bgcolor for a in list_of_attrs ]),
340365 bold = _or (False , * [a .bold for a in list_of_attrs ]),
366+ dim = _or (False , * [a .dim for a in list_of_attrs ]),
341367 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 ]),
342370 strike = _or (False , * [a .strike for a in list_of_attrs ]),
343371 italic = _or (False , * [a .italic for a in list_of_attrs ]),
344372 blink = _or (False , * [a .blink for a in list_of_attrs ]),
373+ blinkfast = _or (False , * [a .blinkfast for a in list_of_attrs ]),
345374 reverse = _or (False , * [a .reverse for a in list_of_attrs ]),
346375 hidden = _or (False , * [a .hidden for a in list_of_attrs ]),
376+ overline = _or (False , * [a .overline for a in list_of_attrs ]),
347377 )
348378
349379
0 commit comments