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
You're not doing anything wrong at all! 😬 Although the current implementation isn't ideal, the theming only applies to MDX components at the moment, which means only elements generated from markdown will pick up those styles. And with the way MDX itself works, you can't nest markdown inside of a React component like Appear.
With the current version, the best way I know of styling both markdown lists and JSX elements the same way would be to add a global style for <ul>. I think adding a custom Provider would be the way to go, where you could add a styled-component that targets child <ul>
This will still be an issue, but just merged v2, which should resolve this issue. You can install the beta with npm i mdx-deck@next if you want to give it a shot
Hi there!
Wondering what I could be doing wrong here. Following the docs to include the
<Appear>
component, for list items.When using a markdown unordered list, the theming styles apply as expected:
When converting it to use
<Appear>
, the styles don't take effect:The text was updated successfully, but these errors were encountered: