code-surfer icon indicating copy to clipboard operation
code-surfer copied to clipboard

Support for other presentation tools

Open springroll12 opened this issue 5 years ago • 1 comments

Hi. Love Code-Surfer!

Is there a clean way to integrate this library into other presentation tools (e.g. spectacle)?

I see that it can be embedded in a website (pomb.us :+1:), so it must be possible, but I'm having trouble following mdx-deck-code-surfer. Could you provide guidelines for integrating this library into other applications?

springroll12 avatar Nov 20 '19 16:11 springroll12

You can use the @code-surfer/standalone package to use the React component directly (that's what I'm doing in gatsby-theme-waves which pomb.us is using), but it's undocumented and not very stable.

My (long term) idea is to extract most of code-surfer's code to vanilla js and make it easy to integrate with most js framework and meta-frameworks.

pomber avatar Dec 13 '19 23:12 pomber