docs: Render the warning sign in color - #121
Merged
Merged
Conversation
The readme opened its recommendation with a bare U+26A0 WARNING SIGN, which browsers and terminals drew as a monochrome outline instead of the yellow triangle it was meant to be. - U+26A0 has the Unicode property `Emoji_Presentation = No`, which makes it a text-default character: a renderer draws its plain text glyph unless it is asked for the emoji one. The glyph therefore came from the first font in the stack that covers the character, such as Segoe UI Symbol, DejaVu Sans or Noto Sans Symbols, and the color emoji font was never reached. - Appending U+FE0F VARIATION SELECTOR-16 requests emoji presentation for the character preceding it. That is what characters colored by default, such as U+1F6A7 CONSTRUCTION SIGN, already carry implicitly. - GitHub's `:warning:` shortcode produces a yellow triangle too, but only in GitHub Flavored Markdown. It stays literal text in every other renderer, and this file is read outside the web interface as well. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jtrobles-cdd
force-pushed
the
claude/warning-emoji-rendering-9f1e03
branch
from
September 14, 2026 14:43
a187b9d to
0ee8e20
Compare
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem
The warning sign opening the recommendation in the readme was a bare
U+26A0 WARNING SIGN, so every renderer drew it as a monochrome outline instead of the yellow triangle it is meant to be.U+26A0hasEmoji_Presentation = No, which makes it a text-default character: a renderer picks its plain text glyph, from whichever font in the stack covers it, unless the emoji presentation is requested explicitly. The commit message carries the rest of the reasoning, including why:warning:was not used instead.Not verified
Super Linter is the only check that reads the readme, and I could not run it locally, so how it treats the added
U+FE0Fis for CI to say.