mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix markdown parser not inverting delimiters dict
This commit is contained in:
parent
030f292203
commit
83d9d1d78e
|
@ -169,6 +169,7 @@ def unparse(text, entities, delimiters=None, url_fmt=None):
|
|||
entities = tuple(sorted(entities, key=lambda e: e.offset, reverse=True))
|
||||
|
||||
text = _add_surrogate(text)
|
||||
delimiters = {v: k for k, v in delimiters.items()}
|
||||
for entity in entities:
|
||||
s = entity.offset
|
||||
e = entity.offset + entity.length
|
||||
|
|
Loading…
Reference in New Issue
Block a user