import { Icon, backSVG } from "./icon.js"; import { BannerData } from "./data.js"; function handleFootnote(md: string) { if (!md.includes("[^")) return md; // Replace footnote references with HTML superscript tags return ( md.replace(/\[\^(\d+)\](?::\s*(.*))?/g, (match, id, text) => text ? // Footnote definition `
${data.text}