summaryrefslogtreecommitdiff
path: root/exampleSite/content/docs/faq.md
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite/content/docs/faq.md')
-rw-r--r--exampleSite/content/docs/faq.md31
1 files changed, 7 insertions, 24 deletions
diff --git a/exampleSite/content/docs/faq.md b/exampleSite/content/docs/faq.md
index 0a2f879..6ec0fd9 100644
--- a/exampleSite/content/docs/faq.md
+++ b/exampleSite/content/docs/faq.md
@@ -250,32 +250,15 @@ ex.
## Using Hugo's Syntax highlighter "chroma"
-1. Set hugo's markdown styling in site `config.yml`
-
- ```yml
- markup:
- highlight:
- # anchorLineNos: true
- codeFences: true
- guessSyntax: true
- lineNos: true
- # noClasses: false
- style: monokai
- ```
-
-2. If you want `lineNos: true`, the background won't be proper.
- This will only work with `noClasses: false` or `pygmentsUseClasses: true`.
- Read [Generate Syntax Highlighter CSS](https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css)
-
- Add the following to `assets/css/extended/custom.css`
+Set hugo's markdown styling in site `config.yml`
- ```css
- .chroma {
- background-color: unset;
- }
- ```
+```yml
+markup:
+ highlight:
+ noClasses: false
+```
- More Info : [Configure Markup - Highlight](https://gohugo.io/getting-started/configuration-markup#highlight)
+`noClasses` has to be `false` to make highlight color follows the theme.
---