fix: use proper Markdown numbered list format (1.) instead of bullet (•)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-16 14:19:46 +00:00
parent b570eac59c
commit 84c8131e3a
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ function blocksToMarkdown(blocks) {
if (type === 'heading_2') return '\n## ' + text;
if (type === 'heading_3') return '\n### ' + text;
if (type === 'bulleted_list_item') return '- ' + text;
if (type === 'numbered_list_item') return ' ' + text;
if (type === 'numbered_list_item') return '1. ' + text;
if (type === 'to_do') {
var checked = block.to_do && block.to_do.checked ? '☑' : '☐';
return checked + ' ' + text;

View File

@ -125,7 +125,7 @@ describe('blocksToMarkdown', () => {
];
const md = blocksToMarkdown(blocks);
expect(md).toContain('- Bullet');
expect(md).toContain(' Number');
expect(md).toContain('1. Number');
});
test('converts code blocks', () => {