From 009b885e07ab3d2e9f0fc3e003482d14ed172ab7 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 17 Sep 2026 13:43:07 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E8=AD=B0=E9=A1=8C=E8=A7=A3=E6=9E=90):=20?= =?UTF-8?q?=E6=A8=99=E6=98=8E=20tableSection=20=E5=8F=AA=E8=99=95=E7=90=86?= =?UTF-8?q?=E5=85=A9=E6=AC=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 工作包的介面契約是四欄(介面/產出者/消費者/形狀),直接沿用這一支會無聲 丟掉第三、四欄。把限制寫在函式註解上,讓接手 wp-extract 的人一眼看到,而不是 自己踩一次才發現。 Co-Authored-By: Claude Opus 5 (1M context) --- scripts/issue-body.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/issue-body.js b/scripts/issue-body.js index 94f8eeb..f1cc834 100644 --- a/scripts/issue-body.js +++ b/scripts/issue-body.js @@ -102,6 +102,10 @@ export function listSection(sections, name) { /** * 取出兩欄表格型段落。以分隔列(|---|---|)為界,之後才是資料列; * 沒有分隔列就當成沒有資料,避免把表頭當成一筆名詞。 + * + * 只處理兩欄:多出來的欄會被丟掉。目前唯一的使用者是需求議題的領域名詞表。 + * 工作包的介面契約是四欄(介面/產出者/消費者/形狀),wp-extract 需要另一個 + * 保留全部欄位的版本,不能直接沿用這一支。 * @param {Map} sections * @param {string} name * @returns {{term: string, def: string}[]}