fix(ui): align trajectory checks with inspection ledger

This commit is contained in:
_Kerman
2026-07-28 10:17:44 +08:00
parent a509a3f81f
commit fb3e4effba
5 changed files with 49 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
/**
* Markdown-to-plain-text projection for compact summaries and labels.
* Parsing shares the renderer's GFM grammar; raw HTML remains literal, links
* Parsing shares the renderer's GFM grammar; raw HTML is omitted, links
* keep their labels, images keep alt text, and code keeps its source text.
*/
@@ -36,7 +36,7 @@ function inlineText(node: MarkdownNode): string {
case 'break':
return '\n'
case 'html':
return node.value ?? ''
return ''
case 'thematicBreak':
case 'definition':
return ''
@@ -70,7 +70,7 @@ function blockText(node: MarkdownNode): string {
case 'tableCell':
return compactInline(inlineText(node))
case 'html':
return node.value?.trim() ?? ''
return ''
case 'thematicBreak':
case 'definition':
return ''