this post was submitted on 10 Mar 2024
77 points (97.5% liked)

Sync for Lemmy

15130 readers
52 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
77
Markdown tests (self.syncforlemmy)
submitted 7 months ago* (last edited 7 months ago) by ljdawson to c/syncforlemmy
 

If you come across something that doesn't work pop it here

top 50 comments
sorted by: hot top controversial new old
[โ€“] tb_ 14 points 7 months ago* (last edited 7 months ago)

Code blocks in quotes appear a little funky.

Some line of code


> Extended quote
> ```
More code

Further extended quote

[โ€“] ljdawson 14 points 7 months ago* (last edited 7 months ago) (3 children)

Superscript was reported as ^not working^

[โ€“] [email protected] 7 points 7 months ago (2 children)

Lemmy-ui uses markdown-it-sup, so I think superscript should work on a single word like this: ^superscript^ . It won't work if there is a space in the superscript text: ^this wont work^ . Each word must be enclosed with superscript tags: ^this^ ^should^ ^work^

screenshot for those not currently using a web browser

[โ€“] [email protected] 8 points 7 months ago

Aside from showing the right ^ it works

load more comments (1 replies)
[โ€“] [email protected] 4 points 7 months ago (1 children)

I installed Sync just to test this. To me, that's displaying with "not" superscript but not "working". On web, it just doesn't work at all (this is due to the markdown library lemmy-ui uses not allowing spaces).

Suspect ~subscript will~ also not work. Curious about ~~struck-out text~~.

[โ€“] [email protected] 5 points 7 months ago* (last edited 7 months ago) (1 children)

Okay subscript didn't work on lemmy-ui or Sync. Struck out is fine.

How about single-word ~subscript~? edit: yup, works in lemmy-ui, not in Sync.

load more comments (1 replies)
[โ€“] [email protected] 2 points 7 months ago* (last edited 7 months ago)

'not' is superscripted in Eternity for me

[โ€“] [email protected] 10 points 7 months ago* (last edited 7 months ago) (2 children)

Spoiler formatting was a big one, Lemmy wants to do it like this, I think:

Some paragraph text.

Spoiler TitleSome spoiler elements

Other paragraph text.

EDIT: the main issue being Sync not displaying the spoiler title properly

[โ€“] [email protected] 6 points 7 months ago* (last edited 7 months ago)

I'd also like to mention that the way it's done in the community about page for S4L doesn't seem to work:

1- No advertising or spam.
All types of advertising and spam are restricted in this community.

Edit: this is so confusing. It doesn't work in the about section, but looks fine in my web interface. I don't even know what to believe!

[โ€“] ljdawson 9 points 7 months ago* (last edited 7 months ago) (1 children)
load more comments (1 replies)
[โ€“] Stovetop 8 points 7 months ago* (last edited 7 months ago) (1 children)

!spoiler spoiler Test Comment

with line breaks!<


with line breaks!<```

Saw this comment in the wild which does not appear correct in Sync.

https://discuss.tchncs.de/comment/8334366

In Sync it looks like this:

![](https://lemmy.world/pictrs/image/a660f68f-f78b-41a8-ae15-17a8cd896c3e.jpeg)

On Lemmy via browser, it looks like this:

![](https://lemmy.world/pictrs/image/ed917b91-cdf6-401a-92e0-01462790b8ce.jpeg)
load more comments (1 replies)
[โ€“] CMahaff 5 points 7 months ago (2 children)

The bullet points in my comment here render correctly in the official Lemmy frontend, but not in Sync: https://lemmy.world/comment/6271596

[โ€“] CrayonRosary 4 points 7 months ago* (last edited 7 months ago) (1 children)

I've noticed that Sync requires two newlines between the preceding sentence and the bulleted list, but the Lemmy website does not, nor does Eternity. That appears to be the problem with the list you posted.

This might not make a bulleted list in Sync:

  • one
  • two
  • three

This should make a bulleted list in Sync:

  • one
  • two
  • three

Source:

This might not make a bulleted list in Sync:
- one
- two
- three

This should make a bulleted list in Sync:

- one
- two
- three

Yes, that was the case. Sync screenshot:

1000022013

[โ€“] Stovetop 2 points 7 months ago* (last edited 7 months ago) (1 children)
  • This is an example of a bulleted list item that is long enough to likely wrap onto a second line on most phones.

  • This is another bulleted list item that is intended to do the same thing in order to see how readable they are together.

  • This is a third bulleted list item that has an additional line break between the previous list item.

  1. This is an example of a numbered list item that is long enough to likely wrap onto a second line on most phones.

  2. This is another numbered list item that is intended to do the same thing in order to see how readable they are together.

  3. This is a third numbered list item that has an additional line break between the previous list item.

These don't seem very readable to me, making dense walls of text. I feel like bullets and numbers should indent the paragraph to more easily see the separation between list items.

[โ€“] CrayonRosary 3 points 7 months ago* (last edited 7 months ago)

The additional line breaks aren't doing anything, as I'm sure you can see.

The indent should be an option, if anything. At large font sizes, or small screens, that forced indent might be wasting a lot of space. Especially for nested lists.

Although, as it turns out, Sync barely indents nested lists. That alone makes it hard to read, too.

I'd support the indent you mention. It would make nested lists much easier to read, too.

  • Level 1
    • Level 2. Perferendis est reprehenderit saepe atque architecto sunt est. Libero quia velit qui ut non maiores porro blanditiis. Cum rerum velit modi nisi est. Qui qui in qui. Ducimus omnis dolores doloribus cumque a sunt
      • Level 3. Perferendis est reprehenderit saepe atque architecto sunt est. Libero quia velit qui ut non maiores porro blanditiis. Cum rerum velit modi nisi est. Qui qui in qui. Ducimus omnis dolores doloribus cumque a sunt
        • Level 4. Perferendis est reprehenderit saepe atque architecto sunt est. Libero quia velit qui ut non maiores porro blanditiis. Cum rerum velit modi nisi est. Qui qui in qui. Ducimus omnis dolores doloribus cumque a sunt
    • Level 2. Perferendis est reprehenderit saepe atque architecto sunt est. Libero quia velit qui ut non maiores porro blanditiis. Cum rerum velit modi nisi est. Qui qui in qui. Ducimus omnis dolores doloribus cumque a sunt
[โ€“] sanguinepar 3 points 7 months ago* (last edited 7 months ago) (2 children)

I think a way to make them work is to add two spaces after each line. Here's a test...

  • Line one
  • Line two
  • Line three

Hopefully that works.

It did :-)

[โ€“] CrayonRosary 6 points 7 months ago* (last edited 7 months ago) (1 children)

That's a placebo and it's not doing anything. Bulleted lists never need two spaces at the end of each line. You only use two spaces at the end of line that are not in bulleted or numbered lists.

The bug is that Sync requires a blank line before you start the bulleted list. The Lemmy website doesn't require that.

Here is your comment with no spaces at the end of each line:

spaces after each line. Here's a test...

  • Line one
  • Line two
  • Line three

See? It still works fine.

Now here's an example of what two spaces do.

The first sentence below has a new line after each word but no spaces. The second sentence has two spaces and a new line after each word. The spaces force a line break to be rendered.

This Is Not A List

This
Is
Not
A
List

Source of the above:

This 
Is 
Not 
A 
List

This  
Is  
Not  
A  
List

This feature of markdown was implemented to prevent text from emails and such from wrapping in funny ways when pasted into a comment (or whatever). Old emails often force line breaks after 80 columns of text and it looks goofy when viewed in a modern web browser if those line breaks are kept, so they are ignored. To preserve the line breaks, you add two spaces at the end of each line. That or you might prefer to write paragraphs with a hard wrap at some column, but other people shouldn't have to suffer that.

Adding the two spaces to lines in a bulleted list does nothing useful, but it also doesn't break it, so of course it works.

[โ€“] sanguinepar 3 points 7 months ago

Ah, I see - thanks for the detailed explanation. I think I sort of knew that, but got mixed up when replying on bullets.

[โ€“] CMahaff 4 points 7 months ago (1 children)

So I know that will make it look correct in sync, but I guess what I'm getting at is that the comment is an example that looks right in other clients but NOT in sync.

Sync should show the list correctly like other clients do.

[โ€“] sanguinepar 3 points 7 months ago

Yeah, sorry, I got mixed up, so my 'solution' wasn't really a fix at all.

[โ€“] sanguinepar 5 points 7 months ago* (last edited 7 months ago) (1 children)

Not sure if this is the right place, but in the menu for sharing a community, the format is https://lemmy.world/c/syncforlemmy - any way to have that be [email protected] instead?

I believe that's the preferred format, although I'm not sure if it's universal across Lemmy and other apps. Both ways work in Sync.

[โ€“] ljdawson 6 points 7 months ago (2 children)

Tricky as sharing it to someone without sync might not work well.

[โ€“] [email protected] 8 points 7 months ago

sharing it to someone without sync

The bang syntax will work much better for anyone on Lemmy itself, regardless of which instance they're on or which client they use, while the URL syntax is better when users want to share a link to a community off-platform.

[โ€“] sanguinepar 4 points 7 months ago

Ah, fair point. Maybe a concatenated version with both formats? Dunno. Not a huge issue to be fair :-)

[โ€“] victorz 5 points 7 months ago* (last edited 7 months ago) (1 children)

Not sure if code blocks are supported at all (I'll test using this comment); I know inline code strings are, but blocks I'm not sure.

Either way, in the editor, I'm missing buttons for both inserting inline code and a code block.

Speaking of messages, I can't seem to find a way to mark a message/comment reply as unread. I would like that very much.

#!/bin/fish
#Testing a block of code
if true
  printf "yes"
else
  printf "no"
end
[โ€“] [email protected] 4 points 7 months ago (1 children)
[โ€“] victorz 3 points 7 months ago

That's a nasty one. Hard to paste shell code ๐Ÿ˜…

[โ€“] broton33 4 points 3 months ago (2 children)

Markdown in the media bias bot doesn't work as visibly intended.

See: https://lemmy.zip/post/20009358

load more comments (2 replies)
[โ€“] [email protected] 4 points 5 months ago (1 children)

Any progress being made here? I was really hoping that not being able to view certain communities such as [email protected] would be considering bad enough of a bug to bring a little development back.

[โ€“] ljdawson 5 points 5 months ago (1 children)

Yup. I'm in the process of ripping out the old markdown processor.

[โ€“] [email protected] 3 points 5 months ago (1 children)

Hey! Good to hear from you. Hope you took some good time for yourself. I appreciate the progress update on the merkdown.

[โ€“] ljdawson 6 points 5 months ago (1 children)

I've been flat out on new features. Just finishing up a built in ad blocker เผผ ใค โ—•_โ—• เผฝใค

[โ€“] cory_lowry 4 points 5 months ago (1 children)

What's it gonna do? ๐Ÿ‘€ Hopefully block ads for web pages you're viewing?

[โ€“] ljdawson 5 points 5 months ago (1 children)

Yup. Even managed to get websites caching and working offline too.

[โ€“] cory_lowry 4 points 5 months ago (1 children)

Any way you can block the "sign up for the newsletter" type dialogs that websites like to have? Lol

[โ€“] ljdawson 6 points 5 months ago (1 children)

Already added (โ˜ž๏พŸใƒฎ๏พŸ)โ˜ž

[โ€“] cory_lowry 4 points 5 months ago

เผผ ใค โ—•_โ—• เผฝใค

[โ€“] pivot_root 3 points 7 months ago

While this isn't strictly a markdown issue, it is slightly related. Link domain indicators are handled specially for Reddit, and they probably shouldn't be.

This is a link to a Lemmy post. Sync appends (lemmy.world) after it.

This is a link to a Reddit post. Sync appends (/comments/) after it.

This is a link to an old.reddit post. Sync appends (/comments/) after it.

This is a link to a Lemmy profile. Sync appends (lemmy.world) after it.

This is a link to a Reddit profile. Sync appends (u/ljdawson) after it.


I acknowledge that there would be technical difficulties in trying to make Sync identify ActivityPub users and posts, and the current implementation of showing the domain name is good, in my opinion.

Reddit links should probably display the Reddit domain name, however. These links are external to Sync and would open a new browser page, and it's more informative for the user to know the domain of the link they are opening.

[โ€“] DoomBot5 3 points 7 months ago (8 children)

No text image links in post bodies. Usually see them in the format [](link here) don't show up at all.

load more comments (8 replies)
[โ€“] Stovetop 3 points 7 months ago* (last edited 7 months ago) (1 children)

This is a spoiler message that I unhid before editing.

>!This is a spoiler message that I unhid before editing.!<

!This is a spoiler message that I left hidden before editing!<

>!This is a spoiler message that I left hidden before editing!<

This is the edit.

[โ€“] Stovetop 3 points 7 months ago

Not sure I'd count this as a markdown bug per se, but it seems that when you un-hide a spoiler and then edit your post, it treats the post as if the spoiler had never been there in the first place.

[โ€“] [email protected] 3 points 7 months ago

$$f(x) = 5$$

$a = b$

[โ€“] [email protected] 3 points 5 months ago

I'm not sure if you're still monitoring this or if I should make new thread.

I just encountered a comment where they included a link with brackets in the url and it didn't parse for me in Sync. I assumed it needed escape characters , which did make it a working link for me in app, but I got curious and checked the website and the original link worked fine there. Maybe the Lemmy web ui will escape characters in links by default?

[โ€“] Voxtopass 2 points 7 months ago* (last edited 7 months ago)

Furigana (a feature of Japanese text) is supported by Lemmy on the web but doesn't work in Sync. It's not a part of core markdown but Lemmy uses a plugin.

Here's an example post showing how to use it. https://programming.dev/post/530608

Here's what it should look like:

And here's Sync:

load more comments
view more: next โ€บ