Merge pull request #54 from chatziko/markdown-in-notes

Allow markdown in note shortcodes (fixes #40)
This commit is contained in:
Josh Dzielak
2019-10-23 19:41:31 +02:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -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 %}}
--- ---
+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> <aside class="notes">{{ .Inner }}</aside>