this post was submitted on 22 Jul 2023
233 points (99.2% liked)

Sync for Lemmy

15133 readers
14 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: @[email protected]


founded 1 year ago
MODERATORS
233
submitted 1 year ago* (last edited 1 year ago) by ljdawson to c/syncforlemmy
 

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/[email protected]

edit 9: https://lemmy.ml/u/ljdawson

edit 8: https://kerala.party/u/[email protected]

edit 9: https://latte.isnot.coffee/post/6799

edit 10: [email protected]

edit: 11: @[email protected]

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Nugget 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

[โ€“] [email protected] 15 points 1 year ago (3 children)

subscript and superscript don't work for me on Jerboa

[โ€“] [email protected] 12 points 1 year ago

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

[โ€“] [email protected] 6 points 1 year ago

Same on Connect

[โ€“] [email protected] 1 points 1 year ago

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
```
[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Nor in liftoff 10.9 on iOS

[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago)

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!<

~x = 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