⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { describe, it, expect } from 'bun:test';
import { stripPdfImagePlaceholders } from '../../pdf';
describe('pdf image placeholders', () => {
it('drops the placeholders and the blank lines they leave behind', () => {
const markdown = [
'# Report',
'',
'',
'',
'The first paragraph.',
'',
'',
'',
'The last paragraph.',
].join('\n');
expect(stripPdfImagePlaceholders(markdown)).toBe(
'# Report\n\nThe first paragraph.\n\nThe last paragraph.',
);
});
it('leaves a real image link alone', () => {
const markdown = '';
expect(stripPdfImagePlaceholders(markdown)).toBe(markdown);
});
});