marp-team / marp-vscode

Marp for VS Code: Create slide deck written in Marp Markdown on VS Code
https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode
MIT License
1.56k stars 73 forks source link

Exploration: Support HTML export for Web extension (vscode.dev/github.dev) powered by WebContainer API/Sandpack 2.0 #406

Closed yhatt closed 1 year ago

yhatt commented 1 year ago

WebContainer API provides Node.js tool chain support working completely on Web, without any cloud servers. https://blog.stackblitz.com/posts/webcontainer-api-is-here/

And Sandpack 2.0 able to run Node.js with the browser too. https://codesandbox.io/blog/announcing-sandpack-2 https://sandpack.codesandbox.io/docs/resources/faq#how-does-the-nodebox-compare-to-webcontainers

Marp CLI, an internally running process of the export command, is also working on WebContainer well, so either of them probably can get back a missing feature of the web extension, the export command.

FYI: Both are still not able to work export to PDF and other file formats.

yhatt commented 1 year ago

I think it's better to make swappable the proxy for fs file system API through Marp CLI API.