21
submitted 3 weeks ago by hongminhee@lemmy.ml to c/rust@programming.dev
top 7 comments
sorted by: hot top controversial new old
[-] rtxn@lemmy.world 4 points 2 weeks ago* (last edited 2 weeks ago)

Exactly which flavours of Markdown are targeted/required by this specification?

[-] hongminhee@lemmy.ml 2 points 2 weeks ago

Basically a combination of GFM with a few extensions such as definition lists!

[-] FizzyOrange@programming.dev 0 points 2 weeks ago

Very weird style. Inconsistent heading styles. Four tilde code blocks? That's totally nonstandard. Why?

[-] hongminhee@lemmy.ml 4 points 2 weeks ago

Thanks for the feedback! The style choices are intentional and all valid CommonMark:

  • Heading styles: Setext (===/---) for H1/H2 makes major sections visually prominent in plain text, while ATX (###) is used for deeper levels. This hybrid approach optimizes readability in the raw source.

  • Four tildes: Tildes are valid CommonMark delimiters, just less common. They're chosen because code often contains backticks (shell commands, string literals), so tildes avoid visual clutter.

The core philosophy is that Markdown should be readable as plain text, not just after rendering. These choices prioritize scanning structure in a text editor. That said, it's definitely an opinionated style—not for everyone!

[-] flying_sheep@lemmy.ml 3 points 2 weeks ago

I like the heading styles! The tildes are unusual but the reasoning is sound!

[-] FizzyOrange@programming.dev -1 points 2 weeks ago

code often contains backticks

I've never seen code contain three backticks though.

I guess your heading logic kind of makes sense but tbh I still hate it.

[-] gianni@lemmy.ca -1 points 2 weeks ago

Because Hong.

this post was submitted on 11 Jan 2026
21 points (92.0% liked)

Rust

7716 readers
23 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS