Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mdx code blocks throwing errors in dev console #609

Merged

Conversation

tiplutom
Copy link
Contributor

This PR fixes Issue #561, which was quite annoying for us when using ladle in dev mode.
I added a playwright test and ensured that it actually fails without my change.

The change was made according to the prism react renderer documentation (https://www.npmjs.com/package/prism-react-renderer#usage), where there is no key in the getTokenProps function. It seems like this prop is just forwarded.

Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: efcf2fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@ladle/react Patch
test-addons Patch
example Patch
test-babel Patch
test-config Patch
test-config-ts Patch
test-css Patch
test-decorators Patch
test-playwright Patch
test-programmatic Patch
test-provider Patch
test-baseweb Patch
test-msw Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tajo tajo merged commit 189cd5a into tajo:main Mar 20, 2025
2 checks passed
@tajo tajo mentioned this pull request Mar 20, 2025
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.

2 participants