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: ignore highlighting for no lang #140

Closed atomiks closed 8 months ago

atomiks commented 8 months ago

No lang in the meta and no default code lang (defaults to falsy value "") means all highlighting is skipped entirely, and the <pre><code> tags and text content are raw.

Specifying plaintext as a default lang ensures all code blocks will get default highlighting like before.

Fixes #138

netlify[bot] commented 8 months ago

Deploy Preview for rehype-pretty-code canceled.

Name Link
Latest commit 5f6a102b0e054b3afbb0845896347a8556a51e6a
Latest deploy log https://app.netlify.com/sites/rehype-pretty-code/deploys/658158e2034eeb00089d5afa