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.
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.
14 Comments
Xylight@lemm.ee · 3 pts · 2y
h1
h2
h3
bold italic
!photon@lemdro.id
@Xylight@lemm.ee
Xylight@lemm.ee
link
codewow
subscriptwow ^superscript^
cursed link by people who dont know how lemmy works:
!casualconversation@lemm.ee
::: spoiler test neaky :::
just some regular text
::: spoiler this is a spoiler with more complex stuff wow this is so cool
it even has header support now
:::
``` this is an escaped blockquote ```
Blisterexe@lemmy.zip · 1 pts · 2y
The html parser message... Is that a problem for a non-web based mobile app?
Xylight@lemm.ee · 1 pts · 2y
I should have specified it to say "if this opens in a popup"
wfh@lemm.ee · 1 pts · 2y
There is something going on with mentions, but otherwise awesome work!
Xylight@lemm.ee · 1 pts · 2y
Uh, the new markdown renderer isn't released yet, but it does fix this issue.
wfh@lemm.ee · 1 pts · 2y
Haha got it thanks 🙏
Blisterexe@lemmy.zip · 1 pts · 2y
does this mean that the post text preview will have markdown?
Xylight@lemm.ee · 2 pts · 2y
It already does, just limited
ptz@dubvee.org · 1 pts · 2y
What one did you go with? I switched to
magidoc/plugin-svelte-markedand have been pretty happy with it. The only thing I lost were sub- and superscript.Xylight@lemm.ee · 2 pts · 2y
Xylight@lemm.ee · 1 pts · 2y
Nevermind, this renderer won't work because there's no way to disable the autolinking for some reason?
ptz@dubvee.org · 1 pts · 2y
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
Xylight@lemm.ee · 2 pts · 2y
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.ptz@dubvee.org · 2 pts · 2y
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.
poVoq@slrpnk.net · 1 pts · 2y
Would be great of if also does
xmpp:links.