this post was submitted on 27 Oct 2025
170 points (92.9% liked)

Linux

9942 readers
2054 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] possiblylinux127@lemmy.zip 4 points 3 days ago (2 children)

You need to put a backslash before the hash tag. In Markdown a # is a headet

[–] Lojcs@piefed.social 3 points 3 days ago (1 children)

No? There needs to be a space between on piefed and that's how it works on github too.

https://piefed.social/comment/8602660

[–] Nalivai@lemmy.world 4 points 2 days ago

https://www.markdownguide.org/basic-syntax/
Putting a space is a good practice for compatibility because different software behaves differently. But the standard doesn't specify it per se.

[–] ulterno@programming.dev 1 points 2 days ago (1 children)

As Lojcs said...

The Markdown format expects a space after whatever number of #s you put at the start, for it to be a corresponding level header.
Due to different parsers having different types of leeways, it becomes a bit difficult to make sure stuff always matches.
e.g. I was once mistaken about the way tabs work for multi-level bullets and numbering because GitLab had more leeway. Using discount, I realised where I was being wrong.

[–] Nalivai@lemmy.world 1 points 2 days ago (1 children)

The whole problem is because format doesn't actually expects the space there, and it's left to the interpretation of the parser

[–] ulterno@programming.dev 1 points 2 days ago (1 children)

I thought the whole problem was that there was no de-facto standard and people kept on making their deviations while still calling it Markdown.

I personally like how Doxygen implements it.

[–] Nalivai@lemmy.world 2 points 2 days ago

Yeah. The power of MD is that it's lightweight, versatile, and not very restrictive. You don't need to remember a lot, and the parser is dirt easy to implement.
The negatives are that it's not very restrictive, nobody remembers what's what, and the parser so easy to implement, everyone and their dog has one, and they're all slightly different