Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dzello/reveal-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Dzielak <jdzielak@gmail.com>2020-02-24 15:16:03 +0300
committerJosh Dzielak <jdzielak@gmail.com>2020-02-24 15:17:55 +0300
commitcdb1b99fb4b3109b2b9cfc273b43053fdcde6671 (patch)
tree2ad362450dcd7a6ffef019c477612ba385db6ade
parenta2e3db38b94fa10bcd2d54d777ce0c58cfa9371a (diff)
Default codeFences to off so Highlight.js is used
This is the behavior with previous versions of reveal-hugo. Folks wanting to use Hugo's compile-time highlighter for code blocks should opt into it by setting `codeFences = true`
-rw-r--r--exampleSite/config.toml10
-rw-r--r--exampleSite/content/highlightjs-linenumbers-example/_index.md6
2 files changed, 7 insertions, 9 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 90c91ed..b201cf0 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -16,10 +16,12 @@ name = "Josh Dzielak"
[markup.goldmark.renderer]
unsafe = true
-# uncomment these lines to run the highlightjs-linenumbers-example
-# [markup.highlight]
-# codeFences = false # prevent hugo from processing code fences
-# style = "tango" # hugo highlighting for light + dark background
+# choose between Hugo compile-time or Highlight.js
+# syntax highlighting for code inside of code fences
+[markup.highlight]
+codeFences = false # use highlight.js
+# codeFences = true # use hugo highlighting at compile time
+style = "tango" # set a style for hugo highlighting
[outputFormats.Reveal]
baseName = "index"
diff --git a/exampleSite/content/highlightjs-linenumbers-example/_index.md b/exampleSite/content/highlightjs-linenumbers-example/_index.md
index 2ada950..a285336 100644
--- a/exampleSite/content/highlightjs-linenumbers-example/_index.md
+++ b/exampleSite/content/highlightjs-linenumbers-example/_index.md
@@ -17,7 +17,7 @@ This presentation shows the use of the [new highlighting features](https://githu
## Prerequisite
-Disable `codeFences` in to your `config.toml` to prevent Hugo's built-in highlighting.
+Disable `codeFences` in to your `config.toml` to prevent Hugo's built-in highlighting for code inside of `---` fences.
{{< highlight toml "style=github" >}}
[markup.highlight]
@@ -26,10 +26,6 @@ codeFences = false
---
-❗ To properly view the rest of this example presentation with Highlight.js highlighting, you must now uncomment the line to disable `codeFences` in the `exampleSite/config.toml` file.
-
----
-
## Theme
Specify a theme for Highlight.js in `config.toml`