docs: match example config with recommended defaults #832

This commit is contained in:
Sören Weber 2024-04-19 23:46:49 +02:00
parent a9d6c1b7e6
commit a4073cc5b6
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -92,7 +92,7 @@ mathJaxInitialize = "{ \"chtml\": { \"displayAlign\": \"left\" }, { \"tex\": { \
### Passthrough Configuration
Since {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.120.0{{% /badge %}} you can use your math without enclosing it in a shortcode or codefence by using a [passthrough configuration](https://gohugo.io/content-management/mathematics/#step-1) in your `hugo.toml`:
You can use your math without enclosing it in a shortcode or codefence by using a [passthrough configuration](https://gohugo.io/content-management/mathematics/#step-1) in your `hugo.toml`:
{{< multiconfig file=hugo >}}
[markup]
@ -101,8 +101,8 @@ Since {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.12
[markup.goldmark.extensions.passthrough]
enable = true
[markup.goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]
inline = [['\(', '\)'], ['$', '$']]
block = [['\[', '\]'], ['$$', '$$']]
{{< /multiconfig >}}
In this case you have to tell the theme that your page contains math by setting this in your page's frontmatter: