Skip to content

Commit

Permalink
chore: tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Jan 11, 2023
1 parent 52b2869 commit eace2a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,8 @@ export function MDXRemote({
)
}

// wrapping the content with MDXProvider will allow us to customize the standard
// markdown components (such as "h1" or "a") with the "components" object
const content = (
<Content components={components} />
)
// Pass custom markdown components (such as "h1" or "a") via the "components" object
const content = <Content components={components} />

// If lazy = true, we need to render a wrapping div to preserve the same markup structure that was SSR'd
return lazy ? <div>{content}</div> : content
Expand Down

0 comments on commit eace2a3

Please sign in to comment.