import assert from 'node:assert/strict'; import test from 'node:test'; import { expandWikiLinks, normalizeImportedMarkup, renderKnowledgeMarkdown } from './markdown.js'; test('expands HoloLake wiki links with labels', () => { assert.equal( expandWikiLinks('进入 [[WAKE-ROUTE|唤醒路径]]'), '进入 [唤醒路径](hololake://knowledge/WAKE-ROUTE "WAKE-ROUTE")', ); }); test('renders tables inside a horizontal scroll container', () => { const html = renderKnowledgeMarkdown('| A | B |\n|---|---|\n| 1 | 2 |'); assert.match(html, /class="kb-table-scroll"/); assert.match(html, /