From e8f5f51cd804b5131188b98f8db647d2aa21d3cf Mon Sep 17 00:00:00 2001 From: Floren Munteanu Date: Mon, 23 Feb 2026 15:26:55 -0500 Subject: [PATCH] fix: greedy trim (#946) Co-authored-by: Floren Munteanu <19806136+fmunteanu@users.noreply.github.com> --- layouts/page.markdown.md | 3 +-- layouts/section.markdown.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/layouts/page.markdown.md b/layouts/page.markdown.md index 9e3197f..46afc77 100644 --- a/layouts/page.markdown.md +++ b/layouts/page.markdown.md @@ -1,3 +1,2 @@ -{{- .Title | replaceRE "\n" " " | printf "# %s" -}} - +{{- .Title | replaceRE "\n" " " | printf "# %s" }} {{ .RawContent }} diff --git a/layouts/section.markdown.md b/layouts/section.markdown.md index 9e3197f..46afc77 100644 --- a/layouts/section.markdown.md +++ b/layouts/section.markdown.md @@ -1,3 +1,2 @@ -{{- .Title | replaceRE "\n" " " | printf "# %s" -}} - +{{- .Title | replaceRE "\n" " " | printf "# %s" }} {{ .RawContent }}