docs(議題解析): 標明 tableSection 只處理兩欄
工作包的介面契約是四欄(介面/產出者/消費者/形狀),直接沿用這一支會無聲 丟掉第三、四欄。把限制寫在函式註解上,讓接手 wp-extract 的人一眼看到,而不是 自己踩一次才發現。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -102,6 +102,10 @@ export function listSection(sections, name) {
|
||||
/**
|
||||
* 取出兩欄表格型段落。以分隔列(|---|---|)為界,之後才是資料列;
|
||||
* 沒有分隔列就當成沒有資料,避免把表頭當成一筆名詞。
|
||||
*
|
||||
* 只處理兩欄:多出來的欄會被丟掉。目前唯一的使用者是需求議題的領域名詞表。
|
||||
* 工作包的介面契約是四欄(介面/產出者/消費者/形狀),wp-extract 需要另一個
|
||||
* 保留全部欄位的版本,不能直接沿用這一支。
|
||||
* @param {Map<string, string>} sections
|
||||
* @param {string} name
|
||||
* @returns {{term: string, def: string}[]}
|
||||
|
||||
Reference in New Issue
Block a user