Insert html #349
-
I would like to insert html code and see it rendered in Marp. Is it possible? In Markdown files I can usually add html code and it's rendered nicely, but I cannot reproduce this in Marp. This is the code:
Thanks for your help- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Marp ecosystem is secure first so rendering the most of HTML tags is disabled by default. You can enable rendering of raw HTML tags from options. Marp CLIAdd marp --html your-slide.md Marp for VS CodeOpen VS Code settings, and turn on "Markdown > Marp: Enable HTML" ( |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! It works like a charm! Sorry for asking this. It's my first hour using Marp and, although I could do. almost everything (it's easy for beginners), I was clueless about the insertion of html. |
Beta Was this translation helpful? Give feedback.
Marp ecosystem is secure first so rendering the most of HTML tags is disabled by default. You can enable rendering of raw HTML tags from options.
Marp CLI
Add
--html
option.Marp for VS Code
Open VS Code settings, and turn on "Markdown > Marp: Enable HTML" (
markdown.marp.enableHtml
).