[Bug]: Quickstart fails hydration: intro block renders nested <p>
Area
Documentation site (docs/)
Describe the Bug
The intro block on /docs/quickstart renders a <p> inside a <p>:
<p class="mb-6"><p>Pick your framework below. A Composio session gives your agent…</p></p>In docs/content/docs/quickstart.mdx, the intro text sits on its own lines inside <p className="mb-6">. MDX parses those lines as a Markdown paragraph and wraps them in a second <p>. Browsers don't allow a <p> inside a <p>, so they split the server HTML apart. React sees a mismatch, throws away the server HTML, and rebuilds the page on the client on every visit. It's live on docs.composio.dev, on the most important onboarding page.
Expected: the page hydrates without errors.
Steps to Reproduce
cd docs && bun run dev- Open
http://localhost:3000/docs/quickstart. - Check the browser console.
Error Output
In HTML, <p> cannot be a descendant of <p>.
This will cause a hydration error.
<div className="not-prose ...">
<div>
> <p className="mb-6">
> <p>
Uncaught Error: Hydration failed because the server rendered HTML didn't match the client.
As a result this tree will be regenerated on the client.Reproducibility
Always reproducible.
Proposed Fix
Change the wrapper to <div className="mb-6">, which renders <div class="mb-6"><p>…</p></div> with the same spacing. Add a content test that fails when an MDX page has a <p> tag alone on a line.
Source: ComposioHQ/composio