@@ -80,12 +80,17 @@ def parse_color(text: str) -> str:
8080 color = None ,
8181 bgcolor = None ,
8282 bold = None ,
83+ dim = None ,
8384 underline = None ,
85+ doubleunderline = None ,
86+ curvyunderline = None ,
8487 strike = None ,
8588 italic = None ,
8689 blink = None ,
90+ blinkfast = None ,
8791 reverse = None ,
8892 hidden = None ,
93+ overline = None ,
8994)
9095
9196
@@ -141,6 +146,10 @@ def _parse_style_str(style_str: str) -> Attrs:
141146 attrs = attrs ._replace (blink = True )
142147 elif part == "noblink" :
143148 attrs = attrs ._replace (blink = False )
149+ elif part == "blinkfast" :
150+ attrs = attrs ._replace (blinkfast = True )
151+ elif part == "noblinkfast" :
152+ attrs = attrs ._replace (blinkfast = False )
144153 elif part == "reverse" :
145154 attrs = attrs ._replace (reverse = True )
146155 elif part == "noreverse" :
@@ -149,6 +158,22 @@ def _parse_style_str(style_str: str) -> Attrs:
149158 attrs = attrs ._replace (hidden = True )
150159 elif part == "nohidden" :
151160 attrs = attrs ._replace (hidden = False )
161+ elif part == "dim" :
162+ attrs = attrs ._replace (dim = True )
163+ elif part == "nodim" :
164+ attrs = attrs ._replace (dim = False )
165+ elif part == "doubleunderline" :
166+ attrs = attrs ._replace (doubleunderline = True )
167+ elif part == "nodoubleunderline" :
168+ attrs = attrs ._replace (doubleunderline = False )
169+ elif part == "curvyunderline" :
170+ attrs = attrs ._replace (curvyunderline = True )
171+ elif part == "nocurvyunderline" :
172+ attrs = attrs ._replace (curvyunderline = False )
173+ elif part == "overline" :
174+ attrs = attrs ._replace (overline = True )
175+ elif part == "nooverline" :
176+ attrs = attrs ._replace (overline = False )
152177
153178 # Pygments properties that we ignore.
154179 elif part in ("roman" , "sans" , "mono" ):
@@ -337,12 +362,17 @@ def _or(*values: _T) -> _T:
337362 color = _or ("" , * [a .color for a in list_of_attrs ]),
338363 bgcolor = _or ("" , * [a .bgcolor for a in list_of_attrs ]),
339364 bold = _or (False , * [a .bold for a in list_of_attrs ]),
365+ dim = _or (False , * [a .dim for a in list_of_attrs ]),
340366 underline = _or (False , * [a .underline for a in list_of_attrs ]),
367+ doubleunderline = _or (False , * [a .doubleunderline for a in list_of_attrs ]),
368+ curvyunderline = _or (False , * [a .curvyunderline for a in list_of_attrs ]),
341369 strike = _or (False , * [a .strike for a in list_of_attrs ]),
342370 italic = _or (False , * [a .italic for a in list_of_attrs ]),
343371 blink = _or (False , * [a .blink for a in list_of_attrs ]),
372+ blinkfast = _or (False , * [a .blinkfast for a in list_of_attrs ]),
344373 reverse = _or (False , * [a .reverse for a in list_of_attrs ]),
345374 hidden = _or (False , * [a .hidden for a in list_of_attrs ]),
375+ overline = _or (False , * [a .overline for a in list_of_attrs ]),
346376 )
347377
348378
0 commit comments