mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-25 07:48:37 +08:00
- 为 AI markdown 渲染补充 fenced code block 预处理 - 修正 opening/closing fence 缺少换行时的代码块解析失败 - 补充回归测试并更新 issue backlog 记录 Fixes #369
12 lines
418 B
TypeScript
12 lines
418 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { normalizeAiMarkdown } from './aiMarkdown';
|
|
|
|
describe('normalizeAiMarkdown', () => {
|
|
it('inserts a missing newline after the fenced code language marker', () => {
|
|
expect(normalizeAiMarkdown('```sqlSELECT COUNT(*) AS order_count\nFROM customer_order;\n```')).toBe(
|
|
'```sql\nSELECT COUNT(*) AS order_count\nFROM customer_order;\n```',
|
|
);
|
|
});
|
|
});
|