Skip to content

[3.x] Add header-style code block labels - #2583

Merged
emmadesilva merged 7 commits into
masterfrom
v3/code-block-header-labels
Aug 10, 2026
Merged

[3.x] Add header-style code block labels#2583
emmadesilva merged 7 commits into
masterfrom
v3/code-block-header-labels

Conversation

@emmadesilva

@emmadesilva emmadesilva commented Aug 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Render titled Markdown code blocks with a responsive header by default.
  • Keep the HydePHP v2 top-right badge presentation available through markdown.code_block_label_style => 'badge'.
  • Give long filenames and titles normal layout space on narrow screens while leaving untitled and terminal blocks unchanged.

Upgrade note

Projects that want to retain the v2 appearance can set 'code_block_label_style' => 'badge' in config/markdown.php.

Validation

  • Focused code block, Blade block, view-model, rendered-partial, and documentation tests pass.
  • FeatureFramework: 1,881 passed; the sandbox-only socket-bind failure passes with host permissions.
  • UnitFramework: 1,921 passed; only the documented pre-existing PHP 8.5 FeaturedImageUnitTest failure remains.
  • FeatureHyde: 6 passed.
  • php monorepo/HydeStan/run.php: no errors.

Preview

@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 22:01 — with GitHub Actions Inactive
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (29531b4) to head (9922cdf).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master     #2583   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      1807      1810    +3     
===========================================
  Files            183       183           
  Lines           4474      4483    +9     
===========================================
+ Hits            4474      4483    +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@emmadesilva
emmadesilva force-pushed the v3/code-block-header-labels branch from 1a88929 to 837237f Compare August 9, 2026 22:32
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 22:32 — with GitHub Actions Inactive
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 22:33 — with GitHub Actions Inactive
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 23:13 — with GitHub Actions Inactive
@emmadesilva
emmadesilva force-pushed the v3/code-block-header-labels branch from 9fc5e3e to d60500b Compare August 9, 2026 23:15
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 23:15 — with GitHub Actions Inactive
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 23:18 — with GitHub Actions Inactive
@emmadesilva
emmadesilva marked this pull request as ready for review August 9, 2026 23:23
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 23:32 — with GitHub Actions Inactive
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 23:50 — with GitHub Actions Inactive
@emmadesilva
emmadesilva temporarily deployed to pr-documentation-2583 August 9, 2026 23:58 — with GitHub Actions Inactive
@emmadesilva
emmadesilva force-pushed the v3/code-block-header-labels branch from 9922cdf to 8195dc5 Compare August 10, 2026 00:01
@emmadesilva
emmadesilva merged commit d5fe0f9 into master Aug 10, 2026
37 of 39 checks passed
@emmadesilva
emmadesilva deleted the v3/code-block-header-labels branch August 10, 2026 00:22
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