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:
parent
b570eac59c
commit
84c8131e3a
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue