From 5391dddeac5d47be3a52011a4d9f31db410a699f Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 7 Jan 2025 08:56:25 -0800 Subject: [PATCH] Add class attribute to heading render hook examples --- content/en/render-hooks/headings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/render-hooks/headings.md b/content/en/render-hooks/headings.md index dc64296ea..2635802e8 100755 --- a/content/en/render-hooks/headings.md +++ b/content/en/render-hooks/headings.md @@ -64,7 +64,7 @@ In its default configuration, Hugo renders Markdown headings according to the [C [CommonMark specification]: https://spec.commonmark.org/current/ {{< code file=layouts/_default/_markup/render-heading.html copy=true >}} - + {{- .Text -}} {{< /code >}} @@ -72,7 +72,7 @@ In its default configuration, Hugo renders Markdown headings according to the [C To add an anchor link to the right of each heading: {{< code file=layouts/_default/_markup/render-heading.html copy=true >}} - + {{ .Text }} #