Slide content can be written in Markdown instead of HTML. Presentations are made with reveal.js.
Add markdown="true" to a pe:keynoteItem and wrap the contents in it. Slides are separated by three dashes
by default; separator and separatorVertical set a regular expression instead. Markdown is sensitive to
indentation (do not mix tabs and spaces) and line breaks (avoid consecutive breaks), so the content starts at the first column.
<div class="card">
<h5>Markdown</h5>
<p>
Add <code>markdown="true"</code> to a <code>pe:keynoteItem</code> and wrap the contents in it. Slides are separated by three dashes
by default; <code>separator</code> and <code>separatorVertical</code> set a regular expression instead. Markdown is sensitive to
indentation (do not mix tabs and spaces) and line breaks (avoid consecutive breaks), so the content starts at the first column.
</p>
<h:form id="formMarkdown">
<pe:keynote width="480" height="350" style="width: 50vw; height: 50vh;">
<pe:keynoteItem markdown="true">
## Slide 1
A paragraph with some text and a [link](https://primefaces-extensions.github.io).
---
## Slide 2
* item1
* item2
---
## Slide 3
</pe:keynoteItem>
<pe:keynoteItem markdown="true">
## Slide 4
A
---
B
---
C
</pe:keynoteItem>
<pe:keynoteItem markdown="true" separator="^\n---\n$" separatorVertical="^\n--\n$">
## Slide 5
Section 5.1
--
## Slide 5
Section 5.2
---
## Slide 6
</pe:keynoteItem>
<pe:keynoteItem>
<h2>Slide 7</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</pe:keynoteItem>
</pe:keynote>
</h:form>
</div>