Skip to content

Commit

Permalink
Astro 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 6, 2024
1 parent 8f9570b commit 8539fb2
Show file tree
Hide file tree
Showing 14 changed files with 4,846 additions and 3,492 deletions.
8 changes: 7 additions & 1 deletion astro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {fileURLToPath} from 'node:url';
import {defineConfig} from 'astro/config';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import {remarkHeadingId} from 'remark-custom-heading-id';
import remarkHeadingId from 'remark-heading-id';
/// import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import {SITE} from './source/config.mjs';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand Down Expand Up @@ -31,6 +32,11 @@ export default defineConfig({
remarkPlugins: [
remarkHeadingId,
],
// TODO
// rehypePlugins: [
// rehypeHeadingIds,
// [rehypeAutolinkHeadings, {behavior: 'wrap'}],
// ]
},
vite: {
resolve: {
Expand Down
Loading

0 comments on commit 8539fb2

Please sign in to comment.