Closed bennycode closed 4 months ago
What version of rehype-pretty-code are you running? Try it with latest
If you can share a stackblitz example with this issue I will be able to help you faster
Thanks for the quick response. Probably something was odd with my lockfiles. I am using v0.13.1 and I just deleted my package-lock.json
file, recreated it using npm i
and now everything is fine. 👍
glad to hear!
glad to hear!
Thank you for your fantastic plugin! I have it in action here: https://typescript.tv/best-practices/filtering-arrays-in-typescript-with-correct-types/
When I upgraded my Astro site from Astro v3 to Astro v4 the following config became invalid:
It errors at
rehypePrettyCode, prettyCodeOptions
with the following message:The
rehypePrettyCode
type is declared as follows:Can it be turned into something inheriting from Astro's
RehypePlugin
type?