mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-07 14:03:33 +02:00
Merge pull request #54 from chatziko/markdown-in-notes
Allow markdown in note shortcodes (fixes #40)
This commit is contained in:
@@ -4,20 +4,20 @@ weight = 38
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
Add speaker notes to your presentation with the `note` shortcode. Type 's' to see this slide's speaker notes.
|
Add speaker notes (with markdown) to your presentation with the `note` shortcode. Type 's' to see this slide's speaker notes.
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
---
|
---
|
||||||
|
|
||||||
{{%/* note */%}}
|
{{%/* note */%}}
|
||||||
You found the speaker notes!
|
- You found the **speaker notes**!
|
||||||
{{%/* /note */%}}
|
{{%/* /note */%}}
|
||||||
|
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
You found the speaker notes!
|
- You found the **speaker notes**!
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
|
{{/* Markdown is not rendered inside <aside> tags! So we use the following */}}
|
||||||
|
{{/* config which causes .Inner to be rendered before processing the shortcode. */}}
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<aside class="notes">{{ .Inner }}</aside>
|
<aside class="notes">{{ .Inner }}</aside>
|
||||||
Reference in New Issue
Block a user