[feature request] flag for switching from semantic output of emphases to presentational #395
rthrejheytjyrtj545
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sentence
html.WithPresentationalElements
-
<i>
and<b>
respectively.Rationale
The CommonMark repository has a discussion of the issue raised by this proposal. In short: current
<em>
and<strong>
include fewer use cases than<i>
and<b>
.And a reasonably accessibility-conscious writer would have to rely on
<i>
and<b>
a lot more than<em>
and<strong>
in everyday text. Which takes longer to type, especially for non-English speakers, for comparison:<i>произвольный</i>
vs.*произвольный*
(three different special characters vs. one, one switch to Latin vs. zero).Of course, the problem may seem insignificant, but in the real world, this is what discourages the practice of valid use of elements in many cases, which in turn harms: incorrect elements for italic and bold (what authors are most likely to see under these types of emphases) encourages screen readers don't speak the difference from surrounding text for
<em>
and<strong>
.Also, more accessible use of proper elements may be important for those who use style for
<em>
and<strong>
other than italic and bold, and it is important for them to mark this distinction for readers.Beta Was this translation helpful? Give feedback.
All reactions