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

How can I use mardown-it plugins in Marp for VSC #135

Closed
dhruva81 opened this issue Apr 8, 2020 · 2 comments
Closed

How can I use mardown-it plugins in Marp for VSC #135

dhruva81 opened this issue Apr 8, 2020 · 2 comments
Labels
question 🙅 Not issue, just a question (should post to Marp discussion)

Comments

@dhruva81
Copy link

dhruva81 commented Apr 8, 2020

Hi Marpit team

I am trying to use markdown-it-container and markdown-it-sup extensions in Marp for Visual Studio Code. But I am not able to do this. I have searched on Google and YouTube, but I am not able to find any tutorial on how to integrate this functionality.

Please help how can I integrate other markdown-it extensions in Marp for VSC.

Thank you

@yhatt
Copy link
Member

yhatt commented Apr 9, 2020

Unfortunately, Marp for VS Code cannot use plugins due to security reasons. You always should use Marp CLI if you want.

Marpit (and markdown-it) plugins may break the security model of VS Code. For example, VS Code is designed to prevent loading any files from the user-unintended location such as the outside of the current workspace, but plugins can ignore this rule easily.

We have learned the importance of user security from the classic Marp app. The security hole would make triggered the collapse sooner or later as same as the classic app even if the hole is small. Please understand that Marp official tools for general users cannot add a feature if there is even a little risk of security.

Marp CLI is designed for the advanced user like you. The best way for using plugins is to use Marp CLI in VS Code integrated terminal. Learn how to use plugins in the documentation.

@yhatt yhatt closed this as completed Apr 9, 2020
@yhatt yhatt transferred this issue from marp-team/marpit Apr 9, 2020
@yhatt yhatt added the question 🙅 Not issue, just a question (should post to Marp discussion) label Apr 9, 2020
@kongdd
Copy link

kongdd commented Dec 10, 2022

I found https://github.com/yzhang-gh/vscode-markdown-container here.
Any chance to support it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 🙅 Not issue, just a question (should post to Marp discussion)
Projects
None yet
Development

No branches or pull requests

3 participants