Repository navigation
feat(markdown-codeblock): add newline prefix - #22369
Conversation
|
Thank you for your contribution! 🎉 🔔 @lacherogwu you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. You can expect an initial review within five business days. |
left a comment
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds a preference to prepend a newline before markdown codeblocks, allowing users to insert codeblocks with better formatting when pasting into active applications.
Key Changes:
- Added
isNewLinePrefixcheckbox preference (defaults to true) - Modified paste logic to conditionally add newline prefix based on preference
- Updated changelog with new feature entry
Issues Found:
- Manual
Preferencesinterface should be removed (autogenerated by Raycast) - Changelog date should use
{PR_MERGE_DATE}placeholder for most recent entry
Confidence Score: 4/5
- This PR is safe to merge with minor style improvements recommended
- The implementation is straightforward and functional. Two minor style issues were found that don't affect functionality: manual Preferences interface (should be autogenerated) and hardcoded changelog date (should use placeholder). The core feature works correctly and follows Raycast extension patterns.
- No files require special attention - issues are minor style improvements only
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/markdown-codeblock/src/markdown-codeblock.tsx | 3/5 | Added preference support and Preferences interface for newline prefix feature - violates custom instruction about autogenerated types |
| extensions/markdown-codeblock/CHANGELOG.md | 4/5 | Added changelog entry with hardcoded date instead of {PR_MERGE_DATE} placeholder |
3 files reviewed, 2 comments
commented
Oct 27, 2025
|
@pernielsentikaer, please take a look, it's approved now by the extension author so can be merged. |
commented
Oct 30, 2025
|
Published to the Raycast Store: |
commented
Oct 30, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Simple improvements to markdown-codeblock extension which I use a lot.
Adds possibility to prepend newline before and/or after codeblock (most used case for me)
current behavior on master (or prefix disabled at this PR)
prefix enabled
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool