From e7bd7af8601ef8c2a98464a8f5076727247fea4a Mon Sep 17 00:00:00 2001 From: SHIBAHARA Hiroki Date: Sat, 21 Sep 2024 17:05:31 +0900 Subject: [PATCH] fix: Added process to remove last line of examples in references. --- src/scripts/builders/reference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/builders/reference.ts b/src/scripts/builders/reference.ts index 9661593086..67f99d43b8 100644 --- a/src/scripts/builders/reference.ts +++ b/src/scripts/builders/reference.ts @@ -152,7 +152,7 @@ const correctRelativeLinksToExampleAssets = ( return content; } return Array.isArray(content) - ? content.map((ex) => ex.replaceAll("assets/", "/assets/")) + ? content.map((ex) => ex.replaceAll("assets/", "/assets/").replaceAll(/\n$/g, "")) : content.replaceAll("assets/", "/assets/"); };