

npx marp -html -output=dist -input-dir=src Marp is the framework we'll use to turn Markdown into a beautiful slide deck. When generating your presentation you need to pass in the -html flag in order to apply that change to the presentation itself. Slide 1 Item 1 item 2 Item 3 - Slide 2 Subtitle Lorem ipsum dolor sit amet, consectetur adipiscing elit.
MARP EXAMPLES CODE
If you are using the VS Code preview tool then you need to change the Enable HTML setting within the plugins settings. In order to add HTML elements to your slides you need to do a couple of things. However, without the enable HTML setting, the slide would be created with encoded HTML in place. You would then add some custom styles to the front matter to, for example, change the elements with that class to be smaller. Some smaller text at the footer of the page. This would be added to the slide as a block of HTML like this. You can also find additional samples on the AWS GitHub page for Amazon Location, and on the AWS blog. For example, let's say that you wanted to create a block of text that had different styling, this could be a different colour of smaller text. Each code example includes a description of how it works. In certain circumstances it is actually quite useful to add HTML to elements as it allows for fine control over elements on the page. As long as you know of the ramifications of doing so. If you are generating local presentations that you distribute yourself then your should be safe to include HTML elements. As it is possible to host a presentation online using the Marp framework, the ability to inject arbitrary script tags into the presentation poses a security risk. The reason this is done is to prevent security problems. This means that any HTML code you add will be encoded. The marp-cli tool that I use to generate slides will not allow HTML to be added by default. Using HTML In Slidesīy default, markdown supports the use of HTML.
MARP EXAMPLES HOW TO
I've previously written about how to get up and running with Marp, but as I have been using it for a while I have come up with a few things that might be useful to know about if you are getting to grips with it. The Marp suite of tools is great for creating presentations from simple Markdown rules.
