-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
29 lines (28 loc) · 900 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import bookshop from "@bookshop/astro-bookshop";
import tailwind from "@astrojs/tailwind";
import alpine from "@astrojs/alpinejs";
import mdx from "@astrojs/mdx";
import { autoAddRoseyTags } from "./rosey/utils/autoAddRoseyTags";
// https://astro.build/config
export default defineConfig({
site: "https://tiny-jackal.cloudvent.net/",
integrations: [react(), tailwind(), bookshop(), alpine(), mdx()],
markdown: {
rehypePlugins: [autoAddRoseyTags],
remarkRehype: {
// https://github.com/syntax-tree/mdast-util-to-hast?tab=readme-ov-file#options
handlers: {
mdxJsxTextElement(state, node) {
return {
type: "element",
tagName: node.name,
properties: {},
children: state.all(node),
};
},
},
},
},
});