@@ -2460,7 +2460,7 @@ class ItalicAndBoldProcessor(Extra):
2460
2460
strong_re = Markdown ._strong_re
2461
2461
em_re = Markdown ._em_re
2462
2462
2463
- def __init__ (self , md : Markdown , options : dict ):
2463
+ def __init__ (self , md : Markdown , options : Optional [ dict ] ):
2464
2464
super ().__init__ (md , options )
2465
2465
self .hash_table = {}
2466
2466
@@ -3293,7 +3293,7 @@ class MiddleWordEm(ItalicAndBoldProcessor):
3293
3293
name = 'middle-word-em'
3294
3294
order = (CodeFriendly ,), (Stage .ITALIC_AND_BOLD ,)
3295
3295
3296
- def __init__ (self , md : Markdown , options : Union [dict , bool ]):
3296
+ def __init__ (self , md : Markdown , options : Union [dict , bool , None ]):
3297
3297
'''
3298
3298
Args:
3299
3299
md: the markdown instance
@@ -3304,6 +3304,8 @@ def __init__(self, md: Markdown, options: Union[dict, bool]):
3304
3304
'''
3305
3305
if isinstance (options , bool ):
3306
3306
options = {'allowed' : options }
3307
+ else :
3308
+ options = options or {}
3307
3309
options .setdefault ('allowed' , True )
3308
3310
super ().__init__ (md , options )
3309
3311
0 commit comments