Open emmanuelh-dev opened 1 month ago
@emmanuelh-dev is attempting to deploy a commit to the timlrx's projects Team on Vercel.
A member of the Team first needs to authorize it.
Hi @emmanuelh-dev, thanks for the PR. Could you give an example where it might break if using a string rather than json?
Hi Tim,
I've added the TOC to every page without using a component, as you can see in the screenshot below:
However, this approach caused an issue during the build process. The string used is not compatible, which resulted in the following error:
To fix this problem, I changed the type from string to JSON.
To use the TOC (Table of Contents) with the default string, you might encounter an error due to incompatibility with the TOC properties. When attempting to parse it, it may break because it is already a string. However, with these changes, it works fine:![image](https://github.com/user-attachments/assets/93961bbe-c12e-4168-b438-db4615e38e8b)