feat(reference-layout): render code blocks in doc titles#1398
Merged
Conversation
Contributor
|
7f4f353 was deployed to: https://fred-pr1398.review.mdn.allizom.net/ |
Member
|
Apparently, there’s one case with title: RegExp.leftContext ($`)But it doesn’t cause any troubles: <h1>RegExp.leftContext ($`)</h1> |
Member
|
FYI The plan with backticks/code in page titles was to highlight only the first instance to focus the reader’s attention on the main subject. It doesn’t play nicely with this title: title: "SyntaxError: cannot use `??` unparenthesized within `||` and `&&` expressions"But we’re only focusing on highlighting code on HTML/CSS pages and ignoring the rest now. To make it less complicated, we will remove backticks from titles in other sections. |
Member
caugner
approved these changes
Mar 20, 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.


Renders the
titleHTMLfield rari is now providing, and styles them.Screenshots
On http://localhost:3000/en-US/docs/Web/JavaScript/Reference/Errors/Cant_use_nullish_coalescing_unparenthesized:
And with mdn/content#43486 checked out:
On http://localhost:3000/en-US/docs/Web/HTML/Reference/Elements/input/number:
And on http://localhost:3000/en-US/docs/Web/HTML/Reference/Global_attributes/is:
Related issues and pull requests
title_htmlfield to doc and render code blocks rari#544