Updated a readme for react and this repository - #3316
Open
BEASTBOLTT wants to merge 1 commit into
Open
Conversation
ljharb
approved these changes
Sep 9, 2026
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.
Fixes #2301 — JSX (and JavaScript) code examples were not displaying correctly on the generated webpage despite rendering fine in the GitHub README viewer.
Problem
Fixes: #2301
All fenced code blocks across README.md and react/README.md used 4-space-indented fence markers:
The CommonMark spec defines any line indented by 4 or more spaces as an indented code block. Many Markdown-to-HTML converters (including the one used to build the style guide webpage) interpret the 4-space-prefixed ```jsx lines as literal text inside an indented code block rather than as fenced code block delimiters. This caused:
The
jsx /javascript markers to render as visible text on the pageJSX/HTML tags like
block- Some list item text...
Syntax highlighting to break entirely
Fix
Moved all opening and closing fence markers to column 0 (no leading indentation), which is unambiguously parsed as a fenced code block by all CommonMark-compliant renderers: