From fa9b7e2d1ef23512e08142e0feadef824e407c74 Mon Sep 17 00:00:00 2001 From: Aaron Axvig Date: Mon, 16 Mar 2026 22:08:59 -0500 Subject: [PATCH] Parser fixes --- web/js/process.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/js/process.js b/web/js/process.js index 3b63936..d7090f1 100644 --- a/web/js/process.js +++ b/web/js/process.js @@ -122,6 +122,7 @@ export function parseIssuesFromHtmlTable(htmlText) { const leftCellText = extractCellText(cells[0]); const issueDetails = extractIssueDetails(cells[1]); const rightCellText = issueDetails.description; + const rightCellCaveat = issueDetails.caveat; if (/^issue\s*id$/i.test(leftCellText) || /^description$/i.test(rightCellText)) { return; @@ -150,7 +151,7 @@ export function parseIssuesFromHtmlTable(htmlText) { id, description, resolved, - caveat: resolved ? '' : leftCellTrailingText + caveat: resolved ? '' : (rightCellCaveat || plainTrailingText) }); }); @@ -278,8 +279,19 @@ function convertInlineNodeToMarkdown(node) { return content ? `\`${content}\`` : ''; } + if (/\bsystemoutput\b/i.test(className)) { + const content = normalizeInlineMarkdown(renderInlineChildren(node)); + return content ? `\`${content}\`` : ''; + } + const tagName = (node.tagName || '').toUpperCase(); + if (tagName === 'A' && /\bxref\b/i.test(className)) { + const href = node.getAttribute('href') || ''; + const content = normalizeInlineMarkdown(renderInlineChildren(node)); + return content && href ? `[${content}](${href})` : content; + } + if (tagName === 'BR') { return '\u0000'; }