edit full article archive to publication standard
Build and deploy / deploy (push) Successful in 18s

This commit is contained in:
2026-07-31 23:08:19 +03:00
parent 440c8721dc
commit 7c5b19c960
28 changed files with 583 additions and 39 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { access, readFile } from 'node:fs/promises';
import { promisify } from 'node:util';
import { dirname, isAbsolute, join, resolve } from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { cleanReaderHtml } from '../lib/editorial-content.mjs';
const execFileAsync = promisify(execFile);
const webRoot = join(fileURLToPath(new URL('..', import.meta.url)));
@@ -97,7 +98,7 @@ let failed = false;
for (const revision of revisions) {
const issues = [];
const content = revision.contentHtml || '';
const content = cleanReaderHtml(revision.contentHtml || '');
const body = bodyText(content);
const openingParagraphs = [...content.matchAll(/<p>([\s\S]*?)<\/p>/g)]
.slice(0, 2)