Skip to content

docs: Render the warning sign in color - #121

Merged
jtrobles-cdd merged 1 commit into
developfrom
claude/warning-emoji-rendering-9f1e03
Sep 14, 2026
Merged

jtrobles-cdd merged 1 commit into
developfrom
claude/warning-emoji-rendering-9f1e03

Conversation

@jtrobles-cdd

Copy link
Copy Markdown
Member

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+26A0 has Emoji_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+FE0F is for CI to say.

@jtrobles-cdd jtrobles-cdd added the documentation Improvements or additions to documentation label Sep 14, 2026
@jtrobles-cdd jtrobles-cdd self-assigned this Sep 14, 2026
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
jtrobles-cdd force-pushed the claude/warning-emoji-rendering-9f1e03 branch from a187b9d to 0ee8e20 Compare September 14, 2026 14:43
@jtrobles-cdd jtrobles-cdd changed the title readme: Render the warning sign in color docs: Render the warning sign in color Sep 14, 2026
@sonarqubecloud

Copy link
Copy Markdown

@jtrobles-cdd
jtrobles-cdd merged commit ec9be3b into develop Sep 14, 2026
7 checks passed
@jtrobles-cdd
jtrobles-cdd deleted the claude/warning-emoji-rendering-9f1e03 branch September 14, 2026 14:46
@jtrobles-cdd jtrobles-cdd mentioned this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant