Github has a fantastic feature where if you copy a github permalink into an issue or pull request, it shows up as a preview.
For example the link:
I have an MDX based blog, and I'd like to be able to display similar code blocks in posts.
In order of preference, what I'd like is:
- Some kind of MDX plugin that parses the link and replaces it with the preview panel.
- Some kind of React component that accepts the link as a prop and displays a preview panel.
Does anyone know of such a tool/library?