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
WRT the first one mdx-deck has switched to emotion and is now using emotion-theming.
For the 2nd the changes seem to be too major and I'm unfamiliar with the code base of both projects so I wasn't able to spot the proper change but there are withContext HOC and useDeck hook now exported from mdx-deck that are probably the way to go.
1.10.0
Works with inline code but not with code snippets like code={require("!raw-loader!./my-snippet.js")}. code parameter expects a string and not an object (error message).
1.10.0
Works with inline code but not with code snippets like code={require("!raw-loader!./my-snippet.js")}. code parameter expects a string and not an object (error message).
Activity
emirotin commentedon Mar 19, 2019
WRT the first one mdx-deck has switched to emotion and is now using emotion-theming.
For the 2nd the changes seem to be too major and I'm unfamiliar with the code base of both projects so I wasn't able to spot the proper change but there are withContext HOC and useDeck hook now exported from mdx-deck that are probably the way to go.
mbilokonsky commentedon Mar 21, 2019
Just hit this too, which is a bummer because this was going to be a perfect tool for the deck I'm building!
pomber commentedon Mar 21, 2019
I'm planning to do a big refactor (and add more features), but I'm currently busy with other things. So the ETA is end of April.
mbilokonsky commentedon Mar 21, 2019
awesome, thanks!
emirotin commentedon Mar 21, 2019
@mbilokonsky use mdx-deck ^1.10.0 it works nice, the docs are here https://github.com/jxnblk/mdx-deck/tree/v1.10.2/docs
madrus commentedon Apr 21, 2019
w1zd commentedon Apr 22, 2019
Same issue as you.
christopherjbaker commentedon Apr 24, 2019
@madrus @finish8 use
code={require("!raw-loader!./my-snippet.js").default}
insteadmadrus commentedon Apr 26, 2019
Wow! It works indeed. Thanks!
w1zd commentedon Apr 29, 2019
love you 😘
aleclarson commentedon May 9, 2019
#54 works for me
pomber commentedon May 10, 2019
Update: Now I have time to work on releasing a new version, so expect an alpha of code surfer v2 soon.
2 remaining items