this post was submitted on 30 Oct 2025
8 points (90.0% liked)

Lemmy

14075 readers
20 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 5 years ago
MODERATORS
 

Currently, "bold" and "italic" markup doesn't actually output bold and italic text (semantically); instead, it outputs strongly emphasized (<strong>) and emphasized (<em>) text. This is completely wrong and semantic markup abuse, since we can't guarantee that bold text will only be used for strong importance or that italic text will only be used for emphasis. HTML output for this markup should be changed to general-purpose elements (i.e. *%text%* (_%text%_) should be <i>%text%</i>, not <em>%text%</em>, and **%text%** (__%text%__) should be <b>%text%</b>, not <strong>%text%</strong>).

you are viewing a single comment's thread
view the rest of the comments
[–] dessalines@lemmy.ml 5 points 2 weeks ago* (last edited 2 weeks ago)

You'll need to take this up with markdown-it, which is one of the most popular javascript markdown libraries, and follows the CommonMark spec. They know what they're doing and I'm sure have reasons for rendering it that way.

Edit: https://spec.commonmark.org/0.31.2/#emphasis-and-strong-emphasis