{"account":{"acct":"brozek","avatar":"https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/bae9f46f23936e79.jpg","display_name":"Brandon Rozek","header":"https://fosstodon.org/headers/original/missing.png","id":"108219415927856966","uri":"https://fosstodon.org/users/brozek","url":"https://fosstodon.org/@brozek","username":"brozek"},"application":null,"card":{"author_name":"","author_url":"","blurhash":"U12Yh9j@07azj@fQazfQ06az~jj@WXjtoJaz","description":"Carbon is the easiest way to create and share beautiful images of your source code.","embed_url":"","height":630,"html":"","image":"https://cdn.fosstodon.org/cache/preview_cards/images/000/089/742/original/e94809de68a2c3dd.png","image_description":"","language":"en","provider_name":"","provider_url":"","published_at":null,"title":"Carbon","type":"link","url":"https://carbon.now.sh/","width":1200},"content":"

@gigantos Browsing around I found this cool open source application for creating nice looking code images

Carbon: https://carbon.now.sh/

This can output both as PNG and SVG, though sadly it doesn't look like Mastodon supports SVGs. As you mentioned before, the best bet is likely to have the code in the alt image.

","date":"2022-05-01T15:57:09.073Z","edited_at":null,"emojis":[],"favourites_count":1,"id":"108227502346088927","in_reply_to_account_id":"108225902257930629","in_reply_to_id":"108227419374120197","language":"en","media_attachments":[],"mentions":[{"acct":"gigantos@s.gigantos.net","id":"108225902257930629","url":"https://s.gigantos.net/@gigantos","username":"gigantos"}],"poll":null,"reblog":null,"reblogs_count":0,"replies_count":0,"sensitive":false,"spoiler_text":"","syndication":"https://fosstodon.org/@brozek/108227502346088927","tags":[],"visibility":"public"}