glitch-soc / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
695 stars 183 forks source link

Headers should be removed from markdown formatting #2805

Open clarfonthey opened 2 months ago

clarfonthey commented 2 months ago

Pitch

Commonmark includes # header formatting which emits h1-6 tags, but these shouldn't be allowed in posts. An acceptable solution may be to simply replace usages of these tags with bold paragraphs instead, or to simply not process them into HTML entirely. (I'd imagine that there's some special formatting to avoid converting hashtags into headers, so, maybe that could be leveraged here.)

Motivation

Header tags mess with the document outline and thus mess with screen readers, and people are using them to simply emphasise their text, which is not their purpose. I also wrote a larger post about this which may have more insight into this in the replies: https://toot.cat/@clarfonthey/112911895092049070

MagicLike commented 1 month ago

I did not know this, did it a few times, but will now refrain from using it - I support the exclusion of header formatting :+1: