Skip to content

Fix syntax highlighting in code blocks - #1112

Merged
ImTheKai merged 1 commit into
percona:19from
abogdanov85:fix-code-highlight
Nov 25, 2026
Merged

ImTheKai merged 1 commit into
percona:19from
abogdanov85:fix-code-highlight

Conversation

@abogdanov85

@abogdanov85 abogdanov85 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Removed .md-typeset .highlight code span from color: var(--md-typeset-color) in docs/css/design.css because it overrode syntax highlighting token colors in code blocks. Verified locally with MkDocs build.

Before:
image

After:
image

@ImTheKai ImTheKai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution

@ImTheKai
ImTheKai merged commit ed3cdfe into percona:19 Nov 25, 2026
@abogdanov85
abogdanov85 deleted the fix-code-highlight branch November 25, 2026 09:59
@abogdanov85

Copy link
Copy Markdown
Contributor Author

Thanks for merging! I noticed that this same CSS rule also breaks syntax highlighting in your other documentation repositories. At least in some of them which I checked.
Examples:
https://github.com/percona/pg_tde/blob/main/documentation/docs/css/design.css#L276
https://github.com/percona/k8spg-docs/blob/3.0/docs/css/design.css#L268
https://github.com/percona/psmysql-docs/blob/9.7/docs/css/design.css#L276

Would you like me to open similar PRs there, or is there another preferred way to roll this out across repos?

@ImTheKai

Copy link
Copy Markdown
Collaborator

Yeah creating PRs there is the easiest and quickest way. Thanks

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.

2 participants