daily icon indicating copy to clipboard operation
daily copied to clipboard

🐛 BUG: markdown not rendered in `Squad Post`

Open Naapperas opened this issue 1 year ago • 1 comments

What went wrong? 🤔

When writing a squad post that shares a link, if we add a description for the link, the preview shows the correctly rendered markdown but the posted content does not.

Expected Behavior

The posted content should always correctly render markdown content.

Steps to Reproduce Issue

1. Go to a squad
2. Click on `New Post`
3. Write a description containing markdown under `Share a link`
4. Go back to the Squad "feed" and see the markdown text not being correctly rendered.

Solution Proposed

Haven't looked into the issue yet but will be reading the source-code to track it down and figure out a possible solution.

Screenshots

image_with_markdown post_without_markdown

Environment

EndeavourOS Linux x86_64, Mozilla Firefox 120.0

Browsers

Firefox

OS

Linux

Version of daily.dev

No response

Additional Context

After some testing this also happens in "normal posts".

image image

The problem occurs mainly on the "post feed" page: when viewing an article (aka, opening the modal), markdown is correctly rendered; this is not the case for "Share a link" posts.

image

Code of Conduct

  • [X] I follow the conditions of this project.

Naapperas avatar Nov 28 '23 09:11 Naapperas

Hi @Naapperas,

It's not a bug it's a feature. 🙈 Currently, markdown is not supported when sharing links. It's actually the title of the post, and titles don't support markdown. We understand it's not intuitive and we'll look at how to address that.

idoshamun avatar Nov 29 '23 06:11 idoshamun