Skip to content

Dev - #39

Closed
Avijit07x wants to merge 3 commits into
mainfrom
dev
Closed

Dev#39
Avijit07x wants to merge 3 commits into
mainfrom
dev

Conversation

@Avijit07x

Copy link
Copy Markdown
Owner

No description provided.

…t wrap it in <p>

The webpack production build wraps inline MDX (<span> badge, Callout text)
in <p>, inheriting the p override's my-4 margin and inflating it; Turbopack
dev keeps it inline so it only broke on prod. Move the badge to a Badge
component and harden the Callout guard with [&_p]:my-0!.
…ne JSX

The webpack production build (Vercel) renders inline JSX in MDX prose as
block elements: a raw <span> badge wrapped its text in <p>, and inline
<Link> split sentences into [P, A, P]. Turbopack dev kept them inline, so
it only broke on prod. CSS margin guards can't fix a block-split.

- Convert every inline <Link> in the docs MDX to markdown links, which are
  inline by MDX spec and immune to the JSX-flow heuristic.
- Route the mdx-components `a` override through next/link for internal
  hrefs (client-side nav) and <a target=_blank> for external.
- Render the "Recommended" badge as a Badge component so its text is never
  re-parsed into a <p>; harden the Callout guard with [&_p]:my-0!.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
animateicons Ready Ready Preview Jul 31, 2026 10:32pm

@Avijit07x Avijit07x closed this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant