diff --git a/stdplugins/markdown.py b/stdplugins/markdown.py index 50d69f9..976c936 100644 --- a/stdplugins/markdown.py +++ b/stdplugins/markdown.py @@ -70,9 +70,9 @@ MATCHERS = [ ] -def parse(message, old_entities=[]): +def parse(message, old_entities=None): entities = [] - old_entities = {e.offset: e for e in old_entities} + old_entities = {e.offset: e for e in old_entities or []} i = 0 message = _add_surrogate(message)