robdy / robdy.io

My personal 📝 notes/blog. 🎯 Focused on PowerShell scripts and Microsoft 365. 🖱 Created using Gatsby JS.
https://robdy.io
MIT License
2 stars 0 forks source link

Code block missing copy and wrap #732

Open robdy opened 1 year ago

robdy commented 1 year ago

After migrating to MDX v2 in #712, code blocks miss the copy and wrap functionality.

For wrapping, this might help: https://stackoverflow.com/questions/62178921/updating-parent-component-state-from-child-component-with-usestate-react-hook

Notes from #739

Perhaps check this code: https://github.com/zslabs/zslabs-v3

Solution with line wrap and numbering: https://stackoverflow.com/a/41354764/9902555

Helpful guide: https://dev.to/fidelve/the-definitive-guide-for-using-prismjs-in-gatsby-4708

Best practices?: https://www.sitepoint.com/best-practice-for-code-examples/