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

problem when use 'CRLF' as line breaks in mdx file #180

Closed dreamerx0 closed 5 months ago

dreamerx0 commented 8 months ago

In windows when using 'CRLF' as line breaks in mdx file, there will be additional empty line in code block. it's ok when using 'LF' as line breaks.

image

image

o-az commented 8 months ago

Can you share a stackblitz repro?