v4: a description shows as text where a list quotes it — a playlist's card printed its description as written, so one holding an image showed "![](/api/attachments/…)", and so did a user's line in the search results. Both now go through markdownToPlainText (shared/markdown.ts), as the chat's reply previews do: the markup goes, a link keeps its text, an image is left out, and a description of nothing but an image leaves no line. The playlist's page and the profile render the Markdown as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
khannurien
2026-10-10 08:12:44 +00:00
parent 1d56c323a4
commit ffc071af4c
4 changed files with 60 additions and 19 deletions

View File

@@ -1,7 +1,8 @@
/**
* Flattens the Markdown users write into one line of plain text, where a
* quote of it can't render markup: the chat's reply previews and the digest
* email's quotes of a comment or a note.
* quote of it can't render markup: the chat's reply previews, the digest
* email's quotes of a comment or a note, and the line of a description on a
* playlist's card and on a user in the search results.
*
* @module
*/