Skip to content

feat: add transformer-remove-empty-lines#1207

Open
Puxhkar wants to merge 1 commit intoshikijs:mainfrom
Puxhkar:feat/remove-empty-lines
Open

feat: add transformer-remove-empty-lines#1207
Puxhkar wants to merge 1 commit intoshikijs:mainfrom
Puxhkar:feat/remove-empty-lines

Conversation

@Puxhkar
Copy link
Copy Markdown

@Puxhkar Puxhkar commented Dec 3, 2025

Description

This PR adds a new transformer transformerRemoveEmptyLines that removes empty lines from the generated HTML. This is useful for creating compact code displays.

Linked Issues

Fixes #1206

Additional context

I have added a test case in packages/transformers/test/remove-empty-lines.test.ts and verified it passes.

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 3, 2025

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit eef0463
🔍 Latest deploy log https://app.netlify.com/projects/shiki-matsu/deploys/69307b39e599b80008cb1700
😎 Deploy Preview https://deploy-preview-1207--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 3, 2025

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit eef0463
🔍 Latest deploy log https://app.netlify.com/projects/shiki-next/deploys/69307b394f6fc4000848c5b5
😎 Deploy Preview https://deploy-preview-1207--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

feat: add transformer-remove-empty-lines

1 participant