fix: use alt -> title -> filename
This commit is contained in:
@@ -432,6 +432,9 @@ describe('ImportExecutionEngine E2E Tests', () => {
|
||||
// Image with proper alt inside link should preserve the alt text
|
||||
expect(content).toContain('');
|
||||
|
||||
// Image with title but empty alt should use title as alt text (title takes precedence over filename)
|
||||
expect(content).toContain(';
|
||||
|
||||
// Should NOT have empty image alt text (the broken pattern we're fixing)
|
||||
expect(content).not.toMatch(/!\[\]\([^)]+\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user