lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Markdown not formatting in news feed

Open Kap2022 opened this issue 3 years ago • 7 comments

When you include markdown in your post e.g. a link or italics or bold - it formats perfectly in the post.

But it does not format in the newsfeed and that can look very ugly and unprofessional, especially if it is a link, etc.

Kap2022 avatar May 30 '22 18:05 Kap2022

Could you show an example? If you mean the front page short summary no longer rendering markdown, that's correct.

dessalines avatar Jun 02 '22 13:06 dessalines

Was changed here: https://github.com/LemmyNet/lemmy-ui/pull/659

I think it was mainly because it allowed for video to be played on the main page from a post body (https://github.com/LemmyNet/lemmy-ui/issues/650). But that has been fixed by disabling html parsing, so maybe markdown could be enabled again for previews, as the unformatted one looks pretty ugly. Some things like titles should be disabled for the preview though).

Nutomic avatar Jun 02 '22 16:06 Nutomic

It looks like its possible to disable certain rules. So IMO this doable. That also might not be necessary if we use md.renderInline

dessalines avatar Jun 02 '22 21:06 dessalines

Screenshot_20220602-224055 This first one should be bullets where the dashes are

Kap2022 avatar Jun 03 '22 02:06 Kap2022

Screenshot_20220602-224903 Example of bold

Kap2022 avatar Jun 03 '22 02:06 Kap2022

Screenshot_20220602-225050 Example of a link

Kap2022 avatar Jun 03 '22 02:06 Kap2022

Screenshot_20220602-225201 Example of italics

Kap2022 avatar Jun 03 '22 02:06 Kap2022

This looks like it can be safely closed, doesn't seem applicable to 0.18 at least.

alectrocute avatar Jun 14 '23 22:06 alectrocute

from feed https://programming.dev/c/rust (programming.dev runs 0.18.0) bild

If I click the post it renders correctly bild

So, it seems this is still an issue, unless I missunderstand what this issue is about.

snaggen avatar Jul 05 '23 14:07 snaggen