rehype-pretty / rehype-pretty-code

Beautiful code blocks for Markdown or MDX.
https://rehype-pretty.pages.dev
MIT License
1.01k stars 63 forks source link

fix: collapsing lines with plaintext lang with grid true #158

Closed atomiks closed 8 months ago

atomiks commented 8 months ago

plaintext language renders another <span> so the children empty check fails. toString(node) being empty works for both

Fix #157

changeset-bot[bot] commented 8 months ago

⚠️ No Changeset found

Latest commit: a84aab930a0d864cd23cbdaa0cdafd160677a2f0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

netlify[bot] commented 8 months ago

Deploy Preview for rehype-pretty-code canceled.

Name Link
Latest commit a84aab930a0d864cd23cbdaa0cdafd160677a2f0
Latest deploy log https://app.netlify.com/sites/rehype-pretty-code/deploys/65a6f24d2eab3a0008cc0068