Formatting on Lemmy is miles ahead of Reddit

Consistency

As you may know, a message written in one Reddit client doesn't display the same in another. Here's an example:

::: spoiler Example

```
First line
Second line
```

reddit.com and the official app both render this correctly:

First line
Second line

old.reddit.com, however, renders everything on one line:

First line Second line

:::

They also differ in how they render subscripts with parentheses (a^(\(b\))), nested subscripts (a^b^c), and code blocks and lists that immediately follow text.

Lemmy doesn't have these issues, since its Markdown specification is clearly defined.

Images

On Reddit, if you want to add images to a text post, you have to use the Fancy Pants editor on reddit.com. If you attempt to edit such a post on the official app, a third-party app, old.reddit.com or the mobile site, these images simply turn into links. Additionally, you can't attach images in comments.

Lemmy lets you attach images from anywhere, including comments.


Source Rendered
![Lemmy logo](https://join-lemmy.org/static/assets/images/lemmy.svg) Lemmy logo

Multi-line spoilers

Lemmy lets you clean up your post using spoilers:


Source

::: spoiler Heading

Content
:::

Rendered

::: spoiler Heading

Content :::


Subscript text

Source Rendered
H~2~O H2O
24 points · 8 comments · view on lemmy.world

8 Comments

glibg10b@lemmy.ml · 8 pts · 3y (1 reply)

Jerboa doesn't seem to render spoiler tags or subscripts. Anyway, here's an image in a comment:

an image

It's actually an SVG, which is pretty awesome.

zotn@lemmy.world · 5 pts · 3y

This is a reported bug on github, so a fix will happen for sure. While Markdown is awesome and perfect for browsers, incompatible implementations (esp. when using extensions as Lemmy does, e.g. subscript) are often a problem on non-web based platforms, like Android. If Jerboa was an electron app, it would probably be an easier fix than it is; Jerboa is written in Java and there are less and probably less extensive Markdown parsers in that ecosystem.

lungdart@lemmy.ca · 5 pts · 3y (1 reply)

Well, this is a good bug report for jerboa! Lots of rendering not working

glibg10b@lemmy.ml · 2 pts · 3y

It's the following features, to be precise:

Tables

Strike through

O

Subscript

Xa

Superscript

X^a^

Spoilers

::: spoiler summary

detail :::

Images

Hosted outside of Lemmy instances

SVGJPEGPNGGIF

Hosted on Lemmy instances

lemmy.mllemmy.world

TheYang@lemmy.ml · 3 pts · 3y

yeah, it's really good.
I'd love it if kbin and lemmy could agree on how this should work, and both support the same syntax

tubbadu@lemmy.world · 3 pts · 3y (2 replies)

What is still missing for me is the support for some html tags, such as <sup> and <sub> that are very useful for making a whole sentence appear very small. with the current options you have to ~write~ ~each~ ~word~ ~like~ ~this~ or it won't work:

~hello everybody~: hello everybody

~hello~ ~everybody~ hello everybody

also, in jerboa this is not recognized. But we'll arrive everywhere, it's just a matter of time :D

glibg10b@lemmy.ml · 3 pts · 3y (1 reply)

Support for syntax highlighting would also be nice, though Reddit doesn't have that either:


Source

```c++
int main() {
    // comment
}
```

Rendered

int main() {
    // comment
}

I think that's it. Its Markdown support is pretty fleshed out otherwise

tubbadu@lemmy.world · 2 pts · 3y

this is a dream... a dream that we'll probably see in the near future I think, there are plenty of open source libraries that supports markdown