export function formatMarkdown(content: string): string { return content .replace(/\n{3,}/g, '\n\n') .replace(/[ \t]+$/gm, '') .replace(/^\n+/, '') .replace(/\n*$/, '\n') }