import { describe, expect, it } from 'vitest';
import TurndownService from 'turndown';
describe('article markdown conversion', () => {
it('renders ordered lists with the original list item content', () => {
const html = '
- First item
- Second item
';
const td = new TurndownService({ headingStyle: 'atx', bulletListMarker: '-' });
const md = td.turndown(html);
expect(md).toMatch(/1\.\s+First item/);
expect(md).toMatch(/2\.\s+Second item/);
expect(md).not.toContain('$1');
});
});