this post was submitted on 22 Jul 2023
234 points (100.0% liked)

Sync for Lemmy

15143 readers
3 users here now

๐Ÿ‘€


Welcome to Sync for Lemmy!

Download Sync for Lemmy


Welcome to the official Sync for Lemmy community.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Community Rules


1- No advertising or spam.

All types of advertising and spam are restricted in this community.



Community Credits

Artwork and community banner by: @MargotRobbie@lemmy.world


founded 1 year ago
MODERATORS
 

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

top 50 comments
sorted by: hot top controversial new old
[โ€“] Zeus@lemm.ee 32 points 1 year ago* (last edited 1 year ago) (1 children)

lemmy also (unofficially) supports footnotes.[^1] you may want to view this in a browser^[as it currently doesn't render in any mobile clients]^[also note the differing positions of the caret]

additionally, with no markdown linking at all, the web interface^[and i believe most apps] automatically turns [!community@instance.tld](/c/community@instance.tld) into a link

[^1]: with two different syntaxes

That's interesting. ^[Markdown is very cool]

[โ€“] thurstylark@lemm.ee 30 points 1 year ago (1 children)

Shrug emote in backticks: ยฏ\_(ใƒ„)_/ยฏ

Shrug emote unescaped: ยฏ_(ใƒ„)_/ยฏ

Shrug emote properly escaped: ยฏ\_(ใƒ„)_/ยฏ

[โ€“] luffyuk@lemmy.world 14 points 1 year ago

This is the real shit right here.

[โ€“] Nugget@lemmy.world 29 points 1 year ago* (last edited 1 year ago) (4 children)

Italic Italic

Bold Bold

Deferred Link

Image

  • List1
  • List1
  • List1
  • List2
  • List2
  • List2
  1. One
  2. Two
  3. Three
  1. One
  2. Two
  3. Three

Horizontal Rule


hello world

Horizontal Rule


hello world

Inline code with backticks

# code block
print '3 backticks or'
print 'indent 4 spaces'
# code block
print '3 backticks or'
print 'indent 4 spaces'

secretshi

Some ~subscript~ text

Some ^superscript^ text

[โ€“] eco_game@discuss.tchncs.de 15 points 1 year ago (3 children)

subscript and superscript don't work for me on Jerboa

[โ€“] maltasoron@sopuli.xyz 12 points 1 year ago

Same on Thunder. Also, the spoiler isn't hidden.

[โ€“] thurstylark@lemm.ee 6 points 1 year ago

Same on Connect

load more comments (3 replies)
[โ€“] A10@kerala.party 23 points 1 year ago (3 children)
[โ€“] SeaMauFive@lemm.ee 14 points 1 year ago* (last edited 1 year ago) (1 children)

The only user in this thread who understood the assignment

[โ€“] thurstylark@lemm.ee 9 points 1 year ago* (last edited 1 year ago)

I mean, this isn't terribly unimportant. There definitely should be an option to view all links to lemmy communities/users through your home instance when linked like this.

Not necessarily on topic for this thread, but still...

[โ€“] TheGreenGolem@lemm.ee 2 points 1 year ago

!asklemmy@lemmy.ml

load more comments (1 replies)
[โ€“] starscar12@lemm.ee 17 points 1 year ago (2 children)

Lemmy spoilers have different syntax compared to reddit:

This is a spoiler hiding some text
We're no strangers to love
You know the rules and so do I (do I)
A full commitment's what I'm thinking of
You wouldn't get this from any other guy
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you


[โ€“] omey@lemmy.world 19 points 1 year ago (2 children)

For some reason, spoiler tags don't work on my end. I use Connect.

[โ€“] maltasoron@sopuli.xyz 9 points 1 year ago (1 children)
[โ€“] Mr_Blott@lemmy.world 10 points 1 year ago (1 children)
[โ€“] burgersc12@sh.itjust.works 9 points 1 year ago (1 children)

Very few clients support the custom ones, e.g.

^sup^

~sub~

ThisOne

[โ€“] portside@monyet.cc 3 points 1 year ago

None of these work in liftoff

[โ€“] can@sh.itjust.works 6 points 1 year ago (1 children)
[โ€“] NicoCharrua@lemmy.ca 5 points 1 year ago

Works on Jerboa too

[โ€“] superminerJG@lemmy.world 3 points 1 year ago

@VonReposti

[โ€“] VonReposti@feddit.dk 15 points 1 year ago* (last edited 1 year ago)

code by using ` (this is escaped)

Example link

Bold

Italic

Quote

  • List item 1
  • List item 2

Heading 1

Heading 2

Heading 3

Heading 4

~~Strikethrough~~

[โ€“] DerpyPlayz18@lemm.ee 12 points 1 year ago* (last edited 1 year ago) (1 children)

![image alt text](image link)

Example:

A very calming and nostalgic image representing some hills

load more comments (1 replies)
[โ€“] Annoyed_Crabby@lemmy.world 10 points 1 year ago

The image markdown also support mp4 as well

[โ€“] A10@kerala.party 9 points 1 year ago (1 children)
[โ€“] anonymoose@lemmy.ca 6 points 1 year ago (2 children)

Wow, this rendered as a gif on my client (Connect). Did you just write it as an emoji?

That makes me realize that a "view raw" or "view code" button would be awesome.

[โ€“] burgersc12@sh.itjust.works 6 points 1 year ago* (last edited 1 year ago) (1 children)

You can Copy Text and get the raw markdown version on Connect

[โ€“] anonymoose@lemmy.ca 4 points 1 year ago

Yeah, I knew about that, but I didn't know custom emojis were global. Cool feature!

[โ€“] A10@kerala.party 4 points 1 year ago (1 children)

I type : and then the custom emoji name, Lemmy Website Auto completes the markdown for it.

[โ€“] Xylight@lemmy.xylight.dev 8 points 1 year ago (1 children)

Communities:

Users:

  • @user@example.com
  • /u/user
load more comments (1 replies)
[โ€“] veganpizza69@lemmy.world 8 points 1 year ago
[โ€“] mruczek@lemmy.world 7 points 1 year ago

just a random bold italic quote

[โ€“] A10@kerala.party 6 points 1 year ago

!syncforlemmy@lemmy.world

[โ€“] ShittyKopper@lemmy.blahaj.zone 5 points 1 year ago* (last edited 1 year ago)

Something I haven't seen most apps do (but the webui does) is converting (tm) => (tm)

no clue if there are similar substitutions out there, would probably need to check the code to confirm

[โ€“] can@sh.itjust.works 4 points 1 year ago* (last edited 1 year ago)

#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@lemmy.ml 4 points 1 year ago (8 children)
[โ€“] ljdawson@lemmy.world 2 points 1 year ago (3 children)
load more comments (6 replies)
[โ€“] A10@kerala.party 3 points 1 year ago
[โ€“] lulguy@lemmy.world 2 points 1 year ago

text [^footnote] embedded.

[^footnote]: footnote text with [^another] embedded footnote with continuation

[^another]: footnote text with continuation

Random more comment after the footnotes

[โ€“] ljdawson@lemmy.world 2 points 1 year ago
load more comments
view more: next โ€บ