fix: last diffs in transformation
This commit is contained in:
@@ -169,6 +169,7 @@ export class ImportAnalysisEngine {
|
|||||||
headingStyle: 'atx',
|
headingStyle: 'atx',
|
||||||
codeBlockStyle: 'fenced',
|
codeBlockStyle: 'fenced',
|
||||||
bulletListMarker: '-',
|
bulletListMarker: '-',
|
||||||
|
emDelimiter: '*',
|
||||||
});
|
});
|
||||||
|
|
||||||
// Custom rule for list items: use single space after marker instead of multiple spaces
|
// Custom rule for list items: use single space after marker instead of multiple spaces
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ export class ImportExecutionEngine extends EventEmitter {
|
|||||||
headingStyle: 'atx',
|
headingStyle: 'atx',
|
||||||
codeBlockStyle: 'fenced',
|
codeBlockStyle: 'fenced',
|
||||||
bulletListMarker: '-',
|
bulletListMarker: '-',
|
||||||
|
emDelimiter: '*',
|
||||||
});
|
});
|
||||||
|
|
||||||
// Custom rule for list items: use single space after marker instead of multiple spaces
|
// Custom rule for list items: use single space after marker instead of multiple spaces
|
||||||
|
|||||||
@@ -805,8 +805,8 @@ describe('ImportAnalysisEngine', () => {
|
|||||||
|
|
||||||
const report = await engine.analyzeWxr(wxrData, '/test.xml');
|
const report = await engine.analyzeWxr(wxrData, '/test.xml');
|
||||||
|
|
||||||
// Should use title as alt text and include title in markdown
|
// Should use title as alt text (but not include title in markdown - cleaner output)
|
||||||
expect(report.posts.items[0].markdownPreview).toContain('');
|
expect(report.posts.items[0].markdownPreview).toContain('');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should extract filename as alt text when both alt and title are empty', async () => {
|
it('should extract filename as alt text when both alt and title are empty', async () => {
|
||||||
|
|||||||
@@ -440,13 +440,14 @@ describe('ImportExecutionEngine E2E Tests', () => {
|
|||||||
|
|
||||||
// Linked image with empty alt should become a plain image with filename-derived alt
|
// Linked image with empty alt should become a plain image with filename-derived alt
|
||||||
// The link target is the full-size image, so use that for the image src
|
// The link target is the full-size image, so use that for the image src
|
||||||
expect(content).toContain('');
|
// Note: extension is stripped from alt text for cleaner output
|
||||||
|
expect(content).toContain('');
|
||||||
|
|
||||||
// Linked image with no alt attribute (link and image different)
|
// Linked image with no alt attribute (link and image different)
|
||||||
expect(content).toContain('');
|
expect(content).toContain('');
|
||||||
|
|
||||||
// Linked image where link and src are the same
|
// Linked image where link and src are the same
|
||||||
expect(content).toContain('');
|
expect(content).toContain('');
|
||||||
|
|
||||||
// Image with proper alt inside link should preserve the alt text
|
// Image with proper alt inside link should preserve the alt text
|
||||||
expect(content).toContain('');
|
expect(content).toContain('');
|
||||||
|
|||||||
Reference in New Issue
Block a user