Skip to content

Commit

Permalink
fix: pass through props
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjosephprice committed Feb 13, 2025
1 parent b30db46 commit 364394f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ const run = async (string: string, _opts: RunOpts = {}) => {
}

return {
default: () => (
default: props => (
<Contexts terms={terms} baseUrl={baseUrl} variables={variables}>
<Components.Style stylesheet={stylesheet} />
<Content />
<Content {...props} />
</Contexts>
),
toc,
Toc: () =>
Toc: props =>
Toc ? (
<Components.TableOfContents>
<Toc />
<Toc {...props} />
</Components.TableOfContents>
) : null,
stylesheet,
Expand Down

0 comments on commit 364394f

Please sign in to comment.