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- |
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.mdMarp for VS CodeOpen VS Code settings, and turn on "Markdown > Marp: Enable HTML" ( |
|
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. |

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
--htmloption.Marp for VS Code
Open VS Code settings, and turn on "Markdown > Marp: Enable HTML" (
markdown.marp.enableHtml).