I’m updating the markdown parser and want to be sure I’m handling all new types of links e.g. links to communities or users.
If you can please comment any examples I’ll add support.
Cheers, Lj!
edit: testing a link
edit 2: https://lemmy.world/post/1986302
edit 3: https://feddit.uk/post/699250
edit 4: https://lemmy.ml/post/2335045
edit 5: https://lemmy.world/comment/1706265
edit 6: https://lemmy.ml/comment/1651859
edit 7: https://lemmy.ml/c/asklemmy
edit 8: https://kerala.party/c/asklemmy@lemmy.ml
edit 9: https://lemmy.ml/u/ljdawson
edit 8: https://kerala.party/u/ljdawson@lemmy.world
edit 9: https://latte.isnot.coffee/post/6799
edit 10: !android@lemmy.world
edit: 11: @ljdawson@lemmy.ml
Nested List:
- Level 1
- Level 1
- Level 2
- Level 2
- Level 1
- Level 1
- Level 2
- Level 2
@TestingBot_123@lemmy.world
#i take it back third image in link is NSFW when I copied the code for some reason! It’s just rick roll on the actual link though? Sorry, this formatting is still new to me.
Testing from this post (nsfw instance, but sfw post showing markdown for multiple photos)
@ljdawson test
Shrug emote in backticks:
¯\_(ツ)_/¯
Shrug emote unescaped: ¯_(ツ)_/¯
Shrug emote properly escaped: ¯\_(ツ)_/¯
This is the real shit right here.
This is a test
deleted by creator
test
Boo
AAAA!!! 😱😱😱😨😨😨😨
Reply from messaging tab
nice! Can you see this?
Yup!
Hi
Howdy
Testing
Relying with markdown to
stayon#topic
deleted by creator
The image markdown also support mp4 as well
I’m not going to post here, but try these: https://book.hacktricks.xyz/pentesting-web/xss-cross-site-scripting/xss-in-markdown
- [ ] test
deleted by creator
It works.
This syntax automatically converted to a link on the web that will open on a users home instance:
- /c/community@domain.tld
will link to (myinstance.com/c/community@domain.tld)
- !community@example.com
will link to (myinstance.com/c/community@example.com)
- /m/community@domain.tld
syntax used by kbin (for magazines). Will link to (myinstance.com/c/community@domain.tld)
- /u/community@domain.tld
will link to user (myinstance.com/c/community@domain.tld)
This syntax does NOT convert to a link:
- @user@example.com
- /u/user
- /c/community@domain
- !community
- /c/community@domain.tld