From a0c7a145b1d2630fb7629d3c3a549444ae30301f Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 15 Jun 2025 18:21:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=20Markdown=20?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=86=85=E5=AE=B9=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/generate.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/generate.js b/scripts/generate.js index 344a4d5..8830edf 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -31,12 +31,22 @@ export function generateMarkdown() { let result = '' jsonParsed.timeline.forEach((data) => { + + let content = String(data.content || ''); + + if (content) { + content = content.split(' / ').map((v) => { + return `- ${v}`; + }).join('
'); + } + tableRows.push([ data.startTime || '', data.endTime || '', - data.content || '', + content, data.remarks || '', ]); + }); result = json2md(jsonMarkdown);