You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@clarfonthey, usage of non-sematic HTML isn't a reason to remove it, else we'd remove <code> to prevent those who utilise it in the stead of quotation marks (") too.
I suggest that to remediate this problem, all #s – <h1>s to <h6>s – be converted into <h4>s (as is standard) or <h6>s 1 at parse-time.
However, this may be premature, per whatwg/html#7390 (comment). If you don't consider it so, perhaps attempt to incentivise users to utilise the undermentioned CommonMark syntax:
Heading Content
---------------
Body text.
...because this can be interpreted by the parser as whichever h.* tag is most suitable (ideally, whichever corresponds to 1 rem).
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
The text was updated successfully, but these errors were encountered: