Skip to content

Add syntax highlighting imports if a markdown file contains code blocks with languages set#123

Open
paulbrimicombe wants to merge 2 commits into
bbc:mainfrom
paulbrimicombe:syntax-highlighting
Open

Add syntax highlighting imports if a markdown file contains code blocks with languages set#123
paulbrimicombe wants to merge 2 commits into
bbc:mainfrom
paulbrimicombe:syntax-highlighting

Conversation

@paulbrimicombe

Copy link
Copy Markdown
Contributor

🧐 What?

  • Adds client-side syntax highlighting for code blocks in Markdown files
  • This will automatically add syntax highlighting to all relevant pages without the need for client opt-ins

🛠 How

  • If a page has one or more code blocks with a language, import tags are added for HighlightJS (these are managed in / provided by morty)

👀 See

image

@paulbrimicombe
paulbrimicombe marked this pull request as ready for review July 17, 2026 13:21
@paulbrimicombe
paulbrimicombe requested a review from a team as a code owner July 17, 2026 13:21
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.

1 participant