You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. When I try to use JS to create content for my .mdx documentation page, it doesn't apply the expected styles.
In my case, I have an array of objects and I want to build a table based on that with pre-applied styles like text highlighting (using ``) and local links (using []), but I simply get `text` instead of text and [localLink] instead of the actual link.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hi. When I try to use JS to create content for my
.mdx
documentation page, it doesn't apply the expected styles.In my case, I have an array of objects and I want to build a table based on that with pre-applied styles like text highlighting (using ``) and local links (using []), but I simply get `text` instead of
text
and [localLink] instead of the actual link.Here is a simplified example of the problem:
In terms of DOM, here is what i get:
This behavior prevents me from using js arrays to form ui elements (with md styles pre-applied) like
Instead, my only option is to hardcode template elements with the data.
I would appreciate any help.
I have also asked in discord, but no respond so far.
Additional information
I am using Storybook ^8.4.5
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions