this post was submitted on 21 Jul 2024
13 points (100.0% liked)
Photon
267 readers
3 users here now
Photon for Lemmy
A client for the fediverse designed to be intuitive, fast, and beautiful.
Share your themes, ask questions, report bugs, or check on the latest updates here!
You can contact the dev at @Xylight@lemdro.id.
Rules
- Posts must be related to Photon in any way
- Don't be mean
- If your post is a bug report, please preface the title with
[solved]
if it's been fixed.
founded 10 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What one did you go with? I switched to
magidoc/plugin-svelte-marked
and have been pretty happy with it. The only thing I lost were sub- and superscript.Nevermind, this renderer won't work because there's no way to disable the autolinking for some reason?
Autolinking? You should be able to just do a custom renderer for links to do what you need. Unless I'm misunderstanding.
I had to do custom renderers for Links, Code (to integrate highlight.js), spoilers (custom container), and images (to replicate functionality of markdown-it-html5-embed).
https://github.com/asimons04/tesseract/tree/1.4.4/src/lib/components/markdown
For links like @Xylight@lemdro.id and !photon@lemdro.id it's automatically changing it to a
mailto:
link so I can't run linkify on it.I have the /c /u, ! and @ formats working (via pre processing) but without those, yeah, they turn into mailto: links.
Is still on my list of things to double back on.
Would be great of if also does
xmpp:
links.