vscode-mdx icon indicating copy to clipboard operation
vscode-mdx copied to clipboard

Add preview feature

Open silvenon opened this issue 6 years ago • 5 comments

This is inherently tricky because we have to make some sort of a subset, we have to gracefully degrade what we can't display, like imported React components.

See vscode-mdx-preview for inspiration.

silvenon avatar Apr 13 '19 13:04 silvenon

This would be great and an already useful intermediate step would be to allow triggering a preview in one of the markdown preview extensions (e.g. "Markdown Preview Enhanced").
Having some sort of preview that ignores the React Parts (or treats them as HTML) is more helpful than none at all and fully evaluating the MDX is not realistically practically in more complex environents as e.g. GastbyJS (experienced with the preview plugin linked above).

nkuehn avatar Dec 03 '19 11:12 nkuehn

Agreed. I currently have zero free time, but in January I could get this working.

silvenon avatar Dec 03 '19 13:12 silvenon

I can't seriously promise time, too - hence no PR but an Issue :-(

nkuehn avatar Dec 03 '19 14:12 nkuehn

Yeah, I immediately deleted that "PR welcome" part from my comment because everyone already knows that 😅

silvenon avatar Dec 04 '19 12:12 silvenon

Maybe we can use react-live, following this example: https://mdxjs.com/guides/live-code

silvenon avatar Feb 03 '20 01:02 silvenon