From 573dc82cb3d142ef6592af406a9dc52a8fcf2609 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sun, 17 May 2026 12:19:49 +0200 Subject: [PATCH] escape ampersand --- .ci/prep_release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/prep_release.sh b/.ci/prep_release.sh index cddf49aa6..7f4f7d961 100755 --- a/.ci/prep_release.sh +++ b/.ci/prep_release.sh @@ -89,6 +89,8 @@ else echo "'$previous' to '$TAG' ($count commits)" # --> is the markdown comment escape sequence, emojis are way better generated_list="${generated_list//-->/→}" + # Escape & to preserve it from commit message into markdown output + generated_list="${generated_list//&/\\&}" body="${body//--REPLACE-WITH-GENERATED-LIST--/$generated_list}" body="${body//--REPLACE-WITH-COMMIT-COUNT--/$count}" body="${body//--REPLACE-WITH-PREVIOUS-RELEASE-TAG--/$previous}"