export default async function parseMarkdown(markdown) { try { const content = '
' + markdown .replace(//g, '
') .replace(/<\/table>/g, '
') .replace(/{favicon=(.+?)}/g, 'Favicon') .replace(/$1
$2
') + '' ; const titleMatch = content.match(']*>([^<]+)'); const title = titleMatch ? titleMatch[1] : null; const imgMatch = content.match(']*>'); const img = imgMatch ? imgMatch[1] : null; return { content, title, img, } } catch { return { content: null, }; } }