jerboa icon indicating copy to clipboard operation
jerboa copied to clipboard

markdown parse the 5 lines truncated body preview in post listing

Open vijaykramesh opened this issue 1 year ago • 3 comments

right now it doesn't markdown parse this 5 line body preview so links and such don't work properly:

this updates it to do a 5 line body preview (still with the bodyMedium text size) but markdown parse it validated looks correct now in both card & small card mode (doesn't impact list mode)

vijaykramesh avatar Jun 18 '23 01:06 vijaykramesh

Sure let me take a stab at stripping them out of the 5 line body preview before rendering it as md.

vijaykramesh avatar Jun 20 '23 00:06 vijaykramesh

ok updated @dessalines now the CreateMarkdownView has a removeImages mode that strips out any

![optional_alt](https://image.com/photo.jpg)

sections and replaces them with img or img:<alt_text> if alt text is provided

Should I also strip out <img src .. > style images as well? i know they won't get there by default but it might be possible to manually create one, not sure what lemmy does there (I know github markdown supports it)

vijaykramesh avatar Jun 20 '23 02:06 vijaykramesh

Possible duplicate of https://github.com/dessalines/jerboa/pull/703

ZJouba avatar Jun 20 '23 10:06 ZJouba

@vijaykramesh any updates? Those changes should be quick to implement. If you're swamped, one of us could probably finish this up.

dessalines avatar Jul 03 '23 13:07 dessalines

This has been merged now in #1002

dessalines avatar Jul 10 '23 20:07 dessalines

Ah sorry all I was out of town but see this got finished and merged, thanks!

vijaykramesh avatar Jul 11 '23 18:07 vijaykramesh