From 49f8955b54f27fbd34a957495685abc21520d38f Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 20 Oct 2022 12:46:01 +0800 Subject: [PATCH] fix: escape quotes in description in auto-gen markdown detail pages --- .github/build-package-pages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/build-package-pages.sh b/.github/build-package-pages.sh index 37b3718..fdf97fa 100755 --- a/.github/build-package-pages.sh +++ b/.github/build-package-pages.sh @@ -10,7 +10,7 @@ for row in $(cat $1 | jq -r '.[] | @base64'); do content="--- type: page title: \"$(_jq '.name')\" -Description: \"$(_jq '.desc')\" +Description: \"$(_jq '.desc' | tr '\"' "'")\" layout: \"package-detail\" ---" echo "$content" > $2/$(_jq '.slug').md