zce / velite

Turns Markdown / MDX, YAML, JSON, or others into app's data layer with Zod schema.
http://velite.js.org
MIT License
341 stars 19 forks source link

TOC breaking change/broken on latest release #136

Closed Adriel-M closed 1 month ago

Adriel-M commented 1 month ago

Looks like latest release table of contents not being generated correctly.

I'm seeing a case for both empty toc or non-nested toc.

Reproducible on my site from:

https://github.com/Adriel-M/adriel.dev/pull/216 and against main https://github.com/Adriel-M/adriel.dev

I'll debug this later, just wanting to get this issue out.

Adriel-M commented 1 month ago

I do see this package got upgraded though: https://github.com/zce/velite/blame/2ee3f1e6a78bce5168759785435e8e8e9d222a67/package.json#L61 🤔

zce commented 1 month ago

Yes, it was an inadvertent bug, thanks for your feedback

zce commented 1 month ago

Will be released later