mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
Fix spoiler html unparsing (#862)
- The current spoiler implementaion unparses both strikethrough and spoiler tags with <s>, making them indistinguishable
This commit is contained in:
parent
23b02087c2
commit
7d444381c7
1 changed files with 2 additions and 2 deletions
|
|
@ -155,10 +155,10 @@ class HTML:
|
|||
start = entity.offset
|
||||
end = start + entity.length
|
||||
|
||||
if entity_type in ("bold", "italic", "underline", "strikethrough", "spoiler"):
|
||||
if entity_type in ("bold", "italic", "underline", "strikethrough"):
|
||||
start_tag = f"<{entity_type[0]}>"
|
||||
end_tag = f"</{entity_type[0]}>"
|
||||
elif entity_type in ("code", "pre", "blockquote"):
|
||||
elif entity_type in ("code", "pre", "blockquote", "spoiler"):
|
||||
start_tag = f"<{entity_type}>"
|
||||
end_tag = f"</{entity_type}>"
|
||||
elif entity_type == "text_link":
|
||||
|
|
|
|||
Loading…
Reference in a new issue