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

32 points
*

lemmy also (unofficially) supports footnotes.[1] you may want to view this in a browser[2][3]

additionally, with no markdown linking at all, the web interface[4] automatically turns !community@instance.tld into a link


  1. with two different syntaxes ↩︎

  2. as it currently doesn’t render in any mobile clients ↩︎

  3. also note the differing positions of the caret ↩︎

  4. and i believe most apps ↩︎

permalink
report
reply
1 point

That’s interesting. [1]


  1. Markdown is very cool ↩︎

permalink
report
parent
reply
30 points

Shrug emote in backticks: ¯\_(ツ)_

Shrug emote unescaped: ¯_(ツ)_/¯

Shrug emote properly escaped: ¯\_(ツ)_/¯

permalink
report
reply
13 points

This is the real shit right here.

permalink
report
parent
reply
29 points
*

Italic Italic

Bold Bold

Deferred Link

  • 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'
secrets

hi

Some subscript text

Some superscript text

permalink
report
reply
15 points

subscript and superscript don’t work for me on Jerboa

permalink
report
parent
reply
12 points

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

permalink
report
parent
reply
6 points

Same on Connect

permalink
report
parent
reply
3 points
*
Deleted by creator
permalink
report
parent
reply
1 point

Testing some code syntax highlighting (may or may not work depending on UI being used):

fn blah(a: u32) -> Result {
  Ok(a*2)
}
function blah(a) {
  return a*2;
}

Nested (more backticks on our fence nest lesser backticks inside):

```
Example nested
```
permalink
report
parent
reply
1 point
*

I’m on the beta version and here are the issues that I notice. The first horizontal line make the text bold instead of making a line. I think that you cannot “close” a subscript or a superscript. I find the copy block button a bit too large. I think that you used the wrong spoiler tag.

Here below my test on the beta version:

!This is a spoil!<

Ex = x^2

Any way, I give my energy to the sync developer and testers ༼ つ ◕_◕ ༽つ

I am not yet subscribed in the Canada community in lemmy.ca, but I should not.

You miss 100% of the shots that you don’t take

Edit: The Canada@lemmy.ca link don’t work. What is the proper way to link to a community in lemmy?

permalink
report
parent
reply
1 point
*

Nor in liftoff 10.9 on iOS

permalink
report
parent
reply
23 points
14 points
*

The only user in this thread who understood the assignment

permalink
report
parent
reply
8 points
*

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…

permalink
report
parent
reply
2 points
17 points

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


permalink
report
reply
19 points

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

permalink
report
parent
reply
9 points

Same on Thunder.

permalink
report
parent
reply
10 points

Same on Liftoff

permalink
report
parent
reply
6 points

Working well on Summit!

permalink
report
parent
reply
5 points

Works on Jerboa too

permalink
report
parent
reply
3 points

@VonReposti

permalink
report
parent
reply

Sync for Lemmy

!syncforlemmy@lemmy.world

Create post

👀


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


Community stats

  • 393

    Monthly active users

  • 707

    Posts

  • 14K

    Comments