import { marked } from 'marked'; marked.setOptions({ gfm: true, breaks: false, }); export function renderMarkdown(md) { return marked.parse(md || ''); } export function formatDate(iso) { if (!iso) return ''; const d = new Date(iso); return d.toLocaleDateString('ru-RU', { day: 'numeric', month: 'long', year: 'numeric' }); }