Skip to content

Conversation

ElfSundae
Copy link

This pull request fixes the missing padding in example code blocks introduced by changes in PHP 8.3+.
Since highlight_string() now returns <pre><code>...</code></pre> instead of <code>...</code>, the existing CSS rule targeting only <code> no longer applied.

截屏2025-10-09 19 46 40

The fix adds <pre> to the selector so both cases are covered:

+.docs .example-contents > .phpcode > pre,
 .docs .example-contents > .phpcode > code {
     padding: .75rem;
 }

This ensures that the padding style is correctly applied to all example code blocks.

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