diff --git a/scripts/build.ts b/scripts/build.ts index 96d42afd..a5cab8ee 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -8,7 +8,7 @@ import metadataParser from 'markdown-yaml-metadata-parser'; import { renderMdx } from "./mdx.js"; import moment from "moment"; -import { Icon } from "./icon.js"; +import { Icon, backSVG } from "./icon.js"; const PUBLIC_DIR = "public"; @@ -171,7 +171,7 @@ function handleFootnote(md: string) { // Replace footnote references with HTML superscript tags return md.replace(/\[\^(\d+)\](?::\s*(.*))?/g, (match, id, text) => text ? // Footnote definition - `
  • ${text}
  • ` : + `
  • ${text}${backSVG}
  • ` : // Footnote reference `${id}` ) diff --git a/scripts/icon.ts b/scripts/icon.ts index 8ddeaccc..a4f1f136 100644 --- a/scripts/icon.ts +++ b/scripts/icon.ts @@ -8,4 +8,6 @@ export const Icon = { Annotation: ``, TransFlag: ``, Pride: ``, -}; \ No newline at end of file +}; + +export const backSVG = ` ` \ No newline at end of file