feat: render comments as expanded callouts instead of heading separators

This commit is contained in:
slips 2026-04-27 10:41:36 -04:00
parent e99e14c043
commit ad11b3e89a

View file

@ -87,8 +87,9 @@ export const obsidianJiraFieldMappings: Record<string, FieldMapping> = {
const author = c.author?.displayName ?? 'Unknown';
const date = c.created ? c.created.replace('T', ' ').substring(0, 19) : '';
const body = adfToMarkdown(c.body) ?? '';
return `### ${author}${date}\n\n${body}`;
}).join('\n\n---\n\n');
const calloutBody = body.split('\n').map((l: string) => l === '' ? '>' : `> ${l}`).join('\n');
return `> [!note]+ ${author}${date}\n> \n${calloutBody}`;
}).join('\n\n');
},
},
};