Migliora accessibilità e layout per intestazioni che iniziano con emoji

It is a common pattern to include emoji at the beginning of headings to add visual distinction and flair.

An example…

## :white_check_mark: Rock the Vote, this Tuesday!

…which renders as:

:white_check_mark: Rock the Vote, this Tuesday!

The code generated for that heading looks like the following:

<h2 dir="auto">
  <a name="p-9969-white_check_mark-rock-the-vote-this-tuesday-1" class="anchor" href="#p-9969-white_check_mark-rock-the-vote-this-tuesday-1"></a>
  <img src="https://emoji.discourse-cdn.com/twitter/white_check_mark.png?v=15" 
       title=":white_check_mark:" 
       class="emoji" 
       alt=":white_check_mark:" 
       loading="lazy" 
       width="20" 
       height="20" 
       style="aspect-ratio: 20 / 20;">
  Rock the Vote, this Tuesday!
</h2>

Could we make changes to the img element to make the headings more accessible and visually consistent? For example:

  • aria-hidden="true" so the emoji or alt is not rendered for screenreaders
  • vertical-align: middle; margin-right: 8px; for consistent alignment
<h2 dir="auto">
  <a name="p-9969-white_check_mark-rock-the-vote-this-tuesday-1" class="anchor" href="#p-9969-white_check_mark-rock-the-vote-this-tuesday-1"></a>
  <img src="https://emoji.discourse-cdn.com/twitter/white_check_mark.png?v=15" 
       title=":white_check_mark:" 
       class="emoji" 
       alt=":white_check_mark:" 
       aria-hidden="true" 
       loading="lazy" 
       width="20" 
       height="20" 
       style="aspect-ratio: 20 / 20; vertical-align: middle; margin-right: 8px;">
  Rock the Vote, this Tuesday!
</h2>