Xylight (Photon dev)@lemmy.xylight.devM to Photon (moved to lemdro.id)@lemmy.xylight.devEnglish · 1 year ago
Xylight (Photon dev)@lemmy.xylight.devM to Photon (moved to lemdro.id)@lemmy.xylight.devEnglish · 1 year ago
Here’s what I have planned for Photon:
- more consistent UI
- Moderation tools
- Administration tools
- Overhaul as an SPA
- fix the horrible markdown rendering
What would you like to see on Photon?
A couple of things I’d like to see:
I’ve been working on fixing spoilers but because they aren’t part of the official markdown standard it’s kinda hard. I’m trying to figure out how to add my own markdown elements in markdown-it.
How would I show all the different sort options without it looking bad? Should I do a drop-down for if you’ve selected “top”?
Ah, I didn’t realize spoiler tags were non- standard.
I agree, drop down from Top sounds like the best option. The same idea could also work for New: show a drop down menu to sort by either New Posts or New Comments.
Photon is quickly turning into my favorite way to browse Lemmy!
You’re a far better programmer than I am, and I don’t know the codebase well, but could you use some of the code from https://github.com/LemmyNet/lemmy-ui/blob/main/src/shared/markdown.ts and implement it into https://github.com/Xyphyn/photon/blob/main/src/lib/components/markdown/markdown.ts ? The licenses seem compatible, though I don’t know how the mix of Svelte and TypeScript of Photon will affect things.
Since lemmy-ui and Photon both use markdown-it, this is certainly possible. I can implement all of the awaited markdown features now!
Great! Thank you, and I’m glad I could help.
Spoiler support was added!
Example
woooooo, this works as of v0.4.1
Thank you! You are insanely fast. Photon is definitely my favorite frontend already, and it’s constantly improving.