in src/widget/section.ts [47:68]
private static toMarkdown(props: SectionWidgetProps) {
const lines: string[] = [];
// title
const titlePrefix = '#'.repeat(props.titleLevel ?? 1);
lines.push(`${titlePrefix} ${props.titleMarkdown}`);
// description
if (props.descriptionMarkdown) {
lines.push(props.descriptionMarkdown);
}
// quick links
if (props.quicklinks && props.quicklinks.length > 0) {
lines.push(props.quicklinks.map(link => `[button:${link.title}](${link.url})`).join(' '));
}
return lines.join('\n\n');
}