[CC Projects] Extra line added to the start of some code blocks#1268
Merged
rammodhvadia merged 5 commits intoNov 5, 2025
Conversation
rammodhvadia
temporarily deployed
to
previews/1268/merge
October 24, 2025 11:25 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an issue where extra blank lines were being added to the start of code blocks in the instructions panel. The fix introduces a Prism hook that removes multiple leading blank lines from code content before syntax highlighting is applied.
Key changes:
- Added a Prism hook to strip leading blank lines from code blocks
- Implemented a flag to ensure Prism configuration only runs once
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/components/Menus/Sidebar/InstructionsPanel/InstructionsPanel.jsx | Added Prism hook to remove leading blank lines and configuration flag |
| CHANGELOG.md | Added entry documenting the fix for extra lines in code blocks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…_the_start_of_some_code_blocks
patch0
temporarily deployed
to
previews/1268/merge
November 3, 2025 11:09 — with
GitHub Actions
Inactive
patch0
reviewed
Nov 3, 2025
rammodhvadia
marked this pull request as ready for review
November 5, 2025 10:12
rammodhvadia
deleted the
issues/1267-_CC_Projects_Extra_line_added_to_the_start_of_some_code_blocks
branch
November 5, 2025 11:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the following extra line bug in projects-ui editor projects:

closes #1267