make it *possible* to link to headings
This commit is contained in:
parent
965de5f3ea
commit
6a83b98b0c
3 changed files with 22 additions and 0 deletions
|
|
@ -2,6 +2,8 @@ import { pathToFileURL } from "node:url";
|
|||
import { evaluate } from "@mdx-js/mdx";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
import * as runtime from "react/jsx-runtime";
|
||||
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
|
||||
import { IdAttributePlugin } from "@11ty/eleventy";
|
||||
|
||||
export default function (eleventyConfig) {
|
||||
eleventyConfig.addExtension("mdx", {
|
||||
|
|
@ -18,6 +20,8 @@ export default function (eleventyConfig) {
|
|||
},
|
||||
});
|
||||
|
||||
eleventyConfig.addPlugin(IdAttributePlugin);
|
||||
|
||||
eleventyConfig.setNunjucksEnvironmentOptions({
|
||||
throwOnUndefined: true,
|
||||
});
|
||||
|
|
|
|||
17
package-lock.json
generated
17
package-lock.json
generated
|
|
@ -10,6 +10,7 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@11ty/eleventy": "^3.1.2",
|
||||
"@11ty/eleventy-plugin-rss": "^2.0.4",
|
||||
"@mdx-js/mdx": "^3.1.1",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3"
|
||||
|
|
@ -135,6 +136,22 @@
|
|||
"url": "https://opencollective.com/11ty"
|
||||
}
|
||||
},
|
||||
"node_modules/@11ty/eleventy-plugin-rss": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-rss/-/eleventy-plugin-rss-2.0.4.tgz",
|
||||
"integrity": "sha512-LF60sGVlxGTryQe3hTifuzrwF8R7XbrNsM2xfcDcNMSliLN4kmB+7zvoLRySRx0AQDjqhPTAeeeT0ra6/9zHUQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@11ty/eleventy-utils": "^2.0.0",
|
||||
"@11ty/posthtml-urls": "^1.0.1",
|
||||
"debug": "^4.4.0",
|
||||
"posthtml": "^0.16.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/11ty"
|
||||
}
|
||||
},
|
||||
"node_modules/@11ty/eleventy-utils": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-utils/-/eleventy-utils-2.0.7.tgz",
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
"type": "module",
|
||||
"dependencies": {
|
||||
"@11ty/eleventy": "^3.1.2",
|
||||
"@11ty/eleventy-plugin-rss": "^2.0.4",
|
||||
"@mdx-js/mdx": "^3.1.1",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3"
|
||||
|
|
|
|||
Loading…
Reference in a new issue