Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(rehype-docz): add props on playground scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Aug 10, 2018
1 parent c4b2a66 commit ee4b6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rehype-docz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const addCodeProp = (imports: string[]) => async (node: any, idx: number) => {
if (isPlayground(name)) {
const formatted = await format(nodeToString(node))
const code = formatted.slice(1, Infinity)
const scope = `{${imports.join(',')}}`
const scope = `{props,${imports.join(',')}}`
const child = strip(removePlayground(code))
.trim()
.replace(/'/g, `\\'`)
Expand Down

0 comments on commit ee4b6c0

Please sign in to comment.