Add warning about Hugo 0.60 and show how to set markdown parser

This commit is contained in:
Josh Dzielak
2019-12-15 07:49:58 -08:00
parent 1eb09a1739
commit 28de1d9d7f
2 changed files with 15 additions and 0 deletions
+9
View File
@@ -40,6 +40,15 @@ Visit [reveal-hugo.dzello.com](https://reveal-hugo.dzello.com/) to see a present
For a full-length blog post about reveal-hugo, checkout [Harness the Power of Static Site Generators to Create Presentations](https://forestry.io/blog/harness-the-power-of-static-to-create-presentations/) on the [Forestry.io blog](https://forestry.io/blog).
### ⚠️ hugo 0.60 compatibility
reveal-hugo doesn't support Goldmark yet, which is Hugo's default markdown parser as of 0.60. To use reveal-hugo with hugo 0.60+ you can set `markdown.defaultMarkdownHandler` to `"blackfriday"` in `config.toml`.
```toml
[markup]
defaultMarkdownHandler = "blackfriday"
```
### Demos
Jump to the [exampleSite](exampleSite) folder in this repository to see the source code for the above presentation and several more. Here are links to those presentations live:
+6
View File
@@ -12,6 +12,12 @@ themesDir = "../"
[author]
name = "Josh Dzielak"
# as of hugo 0.60 goldmark is the default
# reveal-hugo doesn't support goldmark yet
# so force to black friday
[markup]
defaultMarkdownHandler = "blackfriday"
[outputFormats.Reveal]
baseName = "index"
mediaType = "text/html"