Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { defineConfig } from "astro/config";
import cloudflare from "@astrojs/cloudflare";
import react from "@astrojs/react";
import { satteri } from "@astrojs/markdown-satteri";
import starlight from "@astrojs/starlight";
import { unified } from "@astrojs/markdown-remark";
import starlightLinksValidator from "starlight-links-validator";
import astroD2 from "astro-d2";
import tailwindcss from "@tailwindcss/vite";
Expand Down Expand Up @@ -136,9 +136,15 @@ export default defineConfig({
}),

markdown: {
processor: unified({
processor: satteri({
// Force footnotes to render as text for better accessibility.
remarkRehype: { footnoteBackContent: "↩️ Back to reference" },
features: {
gfm: {
footnotes: {
backContent: (n, _k) => `↩️ Back to reference ${n}`,
},
},
},
}),
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@astrojs/cloudflare": "^14.0.1",
"@astrojs/markdown-remark": "^7.2.0",
"@astrojs/markdown-satteri": "^0.3.3",
"@astrojs/react": "^6.0.0",
"@astrojs/starlight": "^0.41.1",
"@astrojs/starlight-tailwind": "^5.0.0",
Expand Down
Loading