Markdown tests

2 years ago by Ljdawson (Sync dev) to c/syncforlemmy

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

ljdawson 14 points 2 years ago

Superscript was reported as ^not working^

path: 0 8308572, hotness: undefined, score: 14, children: 7
redcalcium 8 points 2 years ago path: 0 8308572 8310396, hotness: undefined, score: 8, children: 2
can 8 points 2 years ago

Aside from showing the right ^ it works

path: 0 8308572 8310396 8320432, hotness: undefined, score: 8, children: 0
jaggedrobotpubes 1 point 2 years ago
path: 0 8308572 8310396 12446231, hotness: undefined, score: 1, children: 0
Zagorath 4 points 2 years ago

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.

path: 0 8308572 8309555, hotness: undefined, score: 4, children: 2
Zagorath 5 points 2 years ago

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.

path: 0 8308572 8309555 8309578, hotness: undefined, score: 5, children: 1
redcalcium 2 points 2 years ago
path: 0 8308572 8309555 8309578 8310296, hotness: undefined, score: 2, children: 0
pineapplelover 2 points 2 years ago

'not' is superscripted in Eternity for me

path: 0 8308572 8330998, hotness: undefined, score: 2, children: 0
tb_ 14 points 2 years ago

Code blocks in quotes appear a little funky.

Some line of code

> Extended quote
> ```
More code

Further extended quote

path: 0 8346626, hotness: undefined, score: 14, children: 0
Coelacanth 10 points 2 years ago

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

Some paragraph text.

Spoiler Title

Some spoiler elements

Other paragraph text.

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

path: 0 8311292, hotness: undefined, score: 10, children: 2
mom 6 points 2 years 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!

path: 0 8311292 8311444, hotness: undefined, score: 6, children: 0
june 2 points 2 years ago path: 0 8311292 9330562, hotness: undefined, score: 2, children: 0
ljdawson 9 points 2 years ago

Testing embedded gifs

path: 0 8349695, hotness: undefined, score: 9, children: 1
can 2 points 2 years ago

Works when viewing this comment page but when looking at your profile page it's blank. Is this expected?

path: 0 8349695 8366987, hotness: undefined, score: 2, children: 0
Stovetop 8 points 2 years ago
path: 0 8362335, hotness: undefined, score: 8, children: 1
MolochAlter 1 point 2 years ago

+1 for this, would be nice to have proper lemmy style spoilers.

path: 0 8362335 11781016, hotness: undefined, score: 1, children: 0
CMahaff 5 points 2 years ago path: 0 8312541, hotness: undefined, score: 5, children: 8
CrayonRosary 4 points 2 years ago

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

path: 0 8312541 8328122, hotness: undefined, score: 4, children: 2
Stovetop 2 points 2 years ago
path: 0 8312541 8328122 8377942, hotness: undefined, score: 2, children: 1
CrayonRosary 3 points 2 years 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
path: 0 8312541 8328122 8377942 8380189, hotness: undefined, score: 3, children: 0
sanguinepar 3 points 2 years ago

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 :-)

path: 0 8312541 8314484, hotness: undefined, score: 3, children: 4
CrayonRosary 6 points 2 years ago

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.

path: 0 8312541 8314484 8328476, hotness: undefined, score: 6, children: 1
sanguinepar 3 points 2 years ago

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

path: 0 8312541 8314484 8328476 8333253, hotness: undefined, score: 3, children: 0
CMahaff 4 points 2 years ago

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.

path: 0 8312541 8314484 8320607, hotness: undefined, score: 4, children: 1
sanguinepar 3 points 2 years ago

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

path: 0 8312541 8314484 8320607 8333271, hotness: undefined, score: 3, children: 0
sanguinepar 5 points 2 years ago

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 !syncforlemmy@lemmy.world 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.

path: 0 8314431, hotness: undefined, score: 5, children: 3
ljdawson 6 points 2 years ago

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

path: 0 8314431 8315190, hotness: undefined, score: 6, children: 2
Zagorath 8 points 2 years 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.

path: 0 8314431 8315190 8324325, hotness: undefined, score: 8, children: 0
sanguinepar 4 points 2 years ago

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

path: 0 8314431 8315190 8316175, hotness: undefined, score: 4, children: 0
victorz 5 points 2 years ago

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
path: 0 8330214, hotness: undefined, score: 5, children: 2
can 4 points 2 years ago path: 0 8330214 8335213, hotness: undefined, score: 4, children: 1
victorz 3 points 2 years ago

That's a nasty one. Hard to paste shell code 😅

path: 0 8330214 8335213 8389391, hotness: undefined, score: 3, children: 0
can 4 points 2 years ago

Any progress being made here? I was really hoping that not being able to view certain communities such as !newbrunswick@lemmy.ca would be considering bad enough of a bug to bring a little development back.

path: 0 10095700, hotness: undefined, score: 4, children: 9
ljdawson 5 points 2 years ago

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

path: 0 10095700 10095716, hotness: undefined, score: 5, children: 8
can 3 points 2 years ago

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

path: 0 10095700 10095716 10099347, hotness: undefined, score: 3, children: 7
ljdawson 6 points 2 years ago

I've been flat out on new features. Just finishing up a built in ad blocker ༼ つ ◕_◕ ༽つ

path: 0 10095700 10095716 10099347 10100803, hotness: undefined, score: 6, children: 6
cory_lowry 4 points 2 years ago

What's it gonna do? 👀 Hopefully block ads for web pages you're viewing?

path: 0 10095700 10095716 10099347 10100803 10101508, hotness: undefined, score: 4, children: 5
broton33 4 points 2 years ago path: 0 11472024, hotness: undefined, score: 4, children: 2
d00ery 1 point 2 years ago

Yep, I have this issue too.

path: 0 11472024 11476995, hotness: undefined, score: 1, children: 1
hedgehogging_the_bed 2 points 2 years ago path: 0 11472024 11476995 11490980, hotness: undefined, score: 2, children: 0
gandalf_der_12te 3 points 2 years ago

$$f(x) = 5$$

$a = b$

path: 0 8379321, hotness: undefined, score: 3, children: 0
Stovetop 3 points 2 years ago
path: 0 8378163, hotness: undefined, score: 3, children: 1
Stovetop 3 points 2 years ago
path: 0 8378163 8378193, hotness: undefined, score: 3, children: 0
pivot_root 3 points 2 years 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.

path: 0 8716337, hotness: undefined, score: 3, children: 0
DoomBot5 3 points 2 years ago

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

path: 0 8310001, hotness: undefined, score: 3, children: 8
ljdawson 2 points 2 years ago

Do you have an example?

path: 0 8310001 8313869, hotness: undefined, score: 2, children: 7
can 3 points 2 years ago

I think they mean they want a button to embed an image link like we have for regular links

path: 0 8310001 8313869 8320399, hotness: undefined, score: 3, children: 3
ljdawson 3 points 2 years ago

Gotcha. Added this last night

path: 0 8310001 8313869 8320399 8402950, hotness: undefined, score: 3, children: 2
can 3 points 2 years ago

Awesome, once again your dedication is appreciated. Already great app is starting to look perfect.

path: 0 8310001 8313869 8320399 8402950 8405171, hotness: undefined, score: 3, children: 1
DoomBot5 1 point 2 years ago

Actually other person got it wrong, but I can confirm that it is fixed in the latest version. I don't see examples of this very often, but I did run across one today.

path: 0 8310001 8313869 8531358, hotness: undefined, score: 1, children: 2
ljdawson 2 points 2 years ago
path: 0 8310001 8313869 8531358 8575130, hotness: undefined, score: 2, children: 0
ljdawson 2 points 2 years ago

Testing from the redesigned messaging.

path: 0 8310001 8313869 8531358 8575165, hotness: undefined, score: 2, children: 0
can 3 points 2 years 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?

path: 0 10245051, hotness: undefined, score: 3, children: 0
Voxtopass 2 points 2 years 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:

path: 0 9057186, hotness: undefined, score: 2, children: 0
sabreW4K3 2 points 2 years ago

!Spoiler tags!<

Don't work in the standard Lemmy way

path: 0 8330028, hotness: undefined, score: 2, children: 2
pineapplelover 2 points 2 years ago

This one works in Eternity

path: 0 8330028 8330985, hotness: undefined, score: 2, children: 0
sabreW4K3 2 points 2 years ago
spoiler

Spoiler via Web UI

path: 0 8330028 8330029, hotness: undefined, score: 2, children: 0
cyberic 2 points 2 years ago

Footnotes are weird? Maybe this post is weird?

https://lemmy.world/comment/8880898

Sync view:

Mobile web view:

Device information

Sync version: v24.03.26-14:56    
Sync flavor: googlePlay    

Ultra user: true    
View type: Slides    
Push enabled: false    

Device: d2q    
Model: samsung SM-N975U    
Android: 12
path: 0 8891913, hotness: undefined, score: 2, children: 0
hyperhypervisor 2 points 2 years ago
path: 0 8364915, hotness: undefined, score: 2, children: 0
hyperhypervisor 2 points 2 years ago

Markdown is not respected in post preview (can't attach an image apparently, but many posts on news communities will have a quote)

path: 0 8365001, hotness: undefined, score: 2, children: 1
can 2 points 2 years ago

Why can't you attach an image? If it's your instance you can upload elsewhere and embed with:

![](img url here)

path: 0 8365001 8382203, hotness: undefined, score: 2, children: 0
Risk 1 point 2 years ago

Posts are not being marked as read, unless the comments are opened.

path: 0 11007148, hotness: undefined, score: 1, children: 0
kingshrubb 1 point a year ago

My up votes and downvotes have disappeared. I was able to briefly see them again after clearing sync app cache and storage but the bug (if it is a bug) returned right away after login.

path: 0 15315741, hotness: undefined, score: 1, children: 1
Kit 2 points a year ago

Same issue here.

path: 0 15315741 15322848, hotness: undefined, score: 2, children: 0
aido 1 point 2 years ago

Funny stuff is happening with the spoilers in this comment, they aren't rendering as spoilers on the first two but tapping the actual spoilers removes the broken spoiler characters around the first two lines? Really strange: https://lemmy.world/comment/10822445

path: 0 10833898, hotness: undefined, score: 1, children: 0
Agret 1 point 2 years ago path: 0 12014125, hotness: undefined, score: 1, children: 0
Gorgritch_umie_killa 1 point 2 years ago

Hi!

Moderator from !perth@aussie.zone here.

Just been playing around using the spoiler tags as makeshift drop down lists in the sidebar for the Perth/WesternAustralia community, and noticed the 'spoiler' markdown formatting isn't recognised in the 'about' page on the Sync app. :)

path: 0 13059041, hotness: undefined, score: 1, children: 0
floofloof 1 point 2 years ago

Several of the Wikipedia links in the post below contain parentheses in the URL. They work in the web front-end but not in Sync.

https://lemmy.ca/post/24972740

path: 0 11168621, hotness: undefined, score: 1, children: 0
syncforlemmy
syncforlemmy

@lemmy.world

login for more options
16451
755
11

👀


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


go to feed...