social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky

fix: don't unescape html to fix code blocks

zenfyr.dev af49b8a2 d39c6bae

verified
Changed files
+1 -2
mastodon
+1 -2
mastodon/common.py
···
from bs4 import BeautifulSoup, Tag
from bs4.element import NavigableString
-
from html import unescape
import mastodon.markeddown as markeddown
···
mentions: list[dict] = status.get('mentions', [])
def mdd(html):
-
md_parser.feed(unescape(html))
+
md_parser.feed(html)
md = md_parser.get_markdown()
md_parser.reset()
return md