2018-05-01 03:47:20 +02:00
+++
weight = 36
+++
{{< markdown > }}
2018-07-19 16:49:24 +02:00
## Markdown
2018-05-01 03:47:20 +02:00
2018-07-21 10:55:03 +02:00
Reveal.js has its own [markdown processor ](https://github.com/hakimel/reveal.js#markdown ). To use that instead of Hugo, surround a slide with the markdown shortcode.
2018-05-01 03:47:20 +02:00
2018-07-19 16:49:24 +02:00
```
{{< /* markdown */>}}
2018-07-21 10:55:03 +02:00
2018-07-19 16:49:24 +02:00
# Hello world!
2018-07-21 10:55:03 +02:00
2018-07-19 16:49:24 +02:00
{{< /* /markdown */>}}
```
2018-05-01 03:47:20 +02:00
2018-07-22 11:50:50 +02:00
< br >
< small >
💡 Make sure to use the `{{</* */>}}` shortcode syntax to avoid rendering by Hugo.
< / small >
2018-05-01 03:47:20 +02:00
---
2018-05-01 10:46:00 +02:00
<!-- .slide: data - background="#FF4081" -->
2018-05-01 03:47:20 +02:00
2018-07-21 10:55:03 +02:00
Reveal.js markdown uses HTML comments to change slide properties, like background color.
2018-05-01 03:47:20 +02:00
```
2018-05-01 08:02:09 +02:00
{{< /* markdown */>}}
2018-05-01 10:46:00 +02:00
<!-- .slide: data - background="#FF4081" -->
# I'm a colorful slide
2018-05-01 08:02:09 +02:00
{{< /* /markdown */>}}
2018-05-01 03:47:20 +02:00
```
{{< / markdown > }}
2018-07-19 16:49:24 +02:00