From 5553ece16d73ad5e9515f6c7ba3b8c479bb894fb Mon Sep 17 00:00:00 2001 From: "S.Gromov" Date: Sun, 19 Apr 2026 07:56:01 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D1=82=D1=8C=20br=20=D0=B2=20README=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- concat-md.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/concat-md.js b/concat-md.js index 22d8d4a..429900a 100644 --- a/concat-md.js +++ b/concat-md.js @@ -92,7 +92,12 @@ const buildReadme = (lang, outFile) => { return; } - const content = replaceVersion(stripFrontmatter(fs.readFileSync(indexPath, "utf8"))); + let content = replaceVersion(stripFrontmatter(fs.readFileSync(indexPath, "utf8"))); + // В README
нужен вверху блока, а не внизу + content = content.replace( + /\n(> .+\n> .+)\n\n
\n/, + "\n
\n\n$1\n" + ); fs.writeFileSync(outFile, content, "utf8"); console.log(`${outFile} создан из ${indexPath} (${version})`); };