From a4073cc5b60c7ce6fdb7797c9d14c5e856f0b00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 19 Apr 2024 23:46:49 +0200 Subject: [PATCH] docs: match example config with recommended defaults #832 --- exampleSite/content/shortcodes/math.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/shortcodes/math.en.md b/exampleSite/content/shortcodes/math.en.md index f8bbfcb6d2..731f73b00d 100644 --- a/exampleSite/content/shortcodes/math.en.md +++ b/exampleSite/content/shortcodes/math.en.md @@ -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: