this post was submitted on 21 Jul 2024
13 points (100.0% liked)

Photon

246 readers
16 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 @[email protected].

Rules

  1. Posts must be related to Photon in any way
  2. Don't be mean
  3. If your post is a bug report, please preface the title with [solved] if it's been fixed.

founded 9 months ago
MODERATORS
 

This will be a test post for markdown, as I'm switching to a faster markdown renderer that will allow me to do some cool stuff, like allow expanding images and running my code in markdown.

It might release with v1.31.2.

all 15 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 2 months ago* (last edited 1 month ago) (1 children)

h1

h2

h3

bold italic

[email protected]

@[email protected]

[email protected]

link


code

code block

wow ~subscript~

wow ^superscript^

image

iframe

cursed link by people who dont know how lemmy works:

[email protected]

this is a block quote

testneaky

just some regular text

  • list item 1
  • list item 2
  1. ordered list
  2. it's pretty useless

this is a spoiler with more complex stuffwow this is so cool

it even has header support now

Item In Stock Price
Python Hat True 23.99
SQL Hat True 23.99
Codecademy Tee False 19.99
Codecademy Hoodie False 42.99

``` this is an escaped blockquote ```

[–] [email protected] 1 points 2 months ago (1 children)

The html parser message... Is that a problem for a non-web based mobile app?

[–] [email protected] 1 points 2 months ago

I should have specified it to say "if this opens in a popup"

[–] [email protected] 1 points 2 months ago (2 children)

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.

[–] [email protected] 1 points 2 months ago (1 children)

Nevermind, this renderer won't work because there's no way to disable the autolinking for some reason?

[–] [email protected] 1 points 2 months ago (1 children)

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

[–] [email protected] 2 points 2 months ago (2 children)

For links like @[email protected] and [email protected] it's automatically changing it to a mailto: link so I can't run linkify on it.

[–] [email protected] 2 points 2 months ago

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.

[–] [email protected] 1 points 2 months ago

Would be great of if also does xmpp: links.

[–] [email protected] 1 points 2 months ago (1 children)

does this mean that the post text preview will have markdown?

[–] [email protected] 2 points 2 months ago

It already does, just limited

[–] [email protected] 1 points 2 months ago (1 children)

There is something going on with mentions, but otherwise awesome work!

[–] [email protected] 1 points 2 months ago (1 children)

Uh, the new markdown renderer isn't released yet, but it does fix this issue.

[–] [email protected] 1 points 2 months ago

Haha got it thanks 🙏