Xyphyn / photon

An opinionated web client for Lemmy to help users discover the fediverse.
https://phtn.app
GNU Affero General Public License v3.0
389 stars 43 forks source link

Markdown renderer does not handle blockquote in summary #214

Closed pieterdd closed 2 months ago

pieterdd commented 1 year ago

Describe the bug The Markdown rendering on the list of posts doesn't always seem to handle blockquotes correctly.

To Reproduce (if applicable) Go to https://phtn.app/c/privacy@lemmy.ml and look for this post:

image

Expected behavior Like on https://phtn.app/post/lemmy.ml/8644270, the block quote should render correctly:

image

Versions

Additional info In case you need to mock the post to recreate the issue, this was the value of post.post.body in the Post component:

">\n>\n> ChatGPT is full of sensitive private information and spits out verbatim text from CNN, Goodreads, WordPress blogs, fandom wikis, Terms of Service agreements, Stack Overflow source code, Wikipedia pages, news blogs, random internet comments, and much more.\n>\n>\n\n>\n>\n> Using this tactic, the researchers showed that there are large amounts of privately identifiable information (PII) in OpenAI’s large language models. They also showed that, on a public version of ChatGPT, the chatbot spit out large passages of text scraped verbatim from other places on the internet.\n>\n>\n\n>\n>\n> “In total, 16.9 percent of generations we tested contained memorized PII,” they wrote, which included “identifying phone and fax numbers, email and physical addresses … social media handles, URLs, and names and birthdays.”\n>\n>\n\nEdit: [The full paper that's referenced in the article can be found here](https://arxiv.org/pdf/2311.17035.pdf)"
Xyphyn commented 2 months ago

Should be fixed now