Skip to content

feat(reference-layout): render code blocks in doc titles#1398

Merged
caugner merged 2 commits intomainfrom
title-html
Mar 20, 2026
Merged

feat(reference-layout): render code blocks in doc titles#1398
caugner merged 2 commits intomainfrom
title-html

Conversation

@LeoMcA LeoMcA requested a review from a team as a code owner March 19, 2026 18:20
@LeoMcA LeoMcA requested a review from caugner March 19, 2026 18:20
@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

7f4f353 was deployed to: https://fred-pr1398.review.mdn.allizom.net/

@pepelsbey
Copy link
Member

Apparently, there’s one case with

title: RegExp.leftContext ($`)

But it doesn’t cause any troubles:

<h1>RegExp.leftContext ($`)</h1>

@pepelsbey
Copy link
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.

@pepelsbey
Copy link
Member

Pushed updates to styles:

image image

@caugner caugner changed the title feat(docs): render code blocks in titles feat(reference-layout): render code blocks in doc titles Mar 20, 2026
@caugner caugner merged commit 9f0021e into main Mar 20, 2026
13 checks passed
@caugner caugner deleted the title-html branch March 20, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants