We use a custom Markdown extension which adds a compact syntax for favicon links:
{<website_id>:<url>}
Where website_id
is the id of the site, and url is the url of the link.
These will be replaced with an image of the website's favicon which links to the url.
Cool Mod {gh:https://github.com/coolguy/CoolMod} {cf:https://legacy.curseforge.com/minecraft/mc-mods/coolmod} {mr:https://modrinth.com/mod/coolmod}
Gets turned into: