mirror of
https://github.com/alamion/obsidian-jira-sync.git
synced 2026-07-22 05:43:04 +00:00
feat: render comments as expanded callouts instead of heading separators
This commit is contained in:
parent
e99e14c043
commit
ad11b3e89a
1 changed files with 3 additions and 2 deletions
|
|
@ -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');
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue