Allow markdown in note shortcodes (fixes #40)

This commit is contained in:
Kostas Chatzikokolakis
2019-09-12 11:54:32 +03:00
parent 68429eccc3
commit 73800d2881
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -4,20 +4,20 @@ weight = 38
## 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
---
{{%/* note */%}}
You found the speaker notes!
- You found the **speaker notes**!
{{%/* /note */%}}
---
```
{{% note %}}
You found the speaker notes!
- You found the **speaker notes**!
{{% /note %}}
---
+3
View File
@@ -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>