rehype-pretty / rehype-pretty-code

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

fix: error in showLineNumbers example #236

Closed beamcode closed 2 months ago

beamcode commented 3 months ago

The example css did not work for conditional showLineNumbers.

Used the css from the website that shows the working example.

Line 75-83 (example i used) https://github.com/rehype-pretty/rehype-pretty-code/blob/master/examples/astro/src/globals.css

Old PR https://github.com/rehype-pretty/rehype-pretty-code/pull/203

Testimonial https://github.com/rehype-pretty/rehype-pretty-code/pull/203#issuecomment-2274978414

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: e657f25f44e496031c545cbfd8a1b7a6c40b76a7

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.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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