Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render a copy/save button for generated files in playground #986

Open
pelikhan opened this issue Jan 7, 2025 · 1 comment
Open

render a copy/save button for generated files in playground #986

pelikhan opened this issue Jan 7, 2025 · 1 comment

Comments

@pelikhan
Copy link
Member

pelikhan commented Jan 7, 2025

Either use a remark/rehype plugin to add the button (best) or use https://www.npmjs.com/package/react-syntax-highlighter (heavier)

Copy link

github-actions bot commented Jan 7, 2025

Review Feedback:

Hi there!

To generate a copy/save button for generated files in the playground, you have two options:

  1. Using a remark/rehype plugin: This approach is more lightweight and could be a better solution. You can explore available plugins in the remark and rehype ecosystems that might fit your needs.

  2. Using react-syntax-highlighter: Although this is a heavier solution, it provides more customization options. You can check out the documentation on their npm page for implementation details.

Both approaches can achieve the desired functionality, so choose the one that best fits your project's requirements and performance considerations.

Let me know if you need any further assistance!

Best regards,
[Your Name]

AI-generated content by issue-reviewer may be incorrect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant