Skip to content

Commit

Permalink
Astro 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 8, 2024
1 parent 8f9570b commit 140f825
Show file tree
Hide file tree
Showing 55 changed files with 4,960 additions and 3,507 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

0 comments on commit 140f825

Please sign in to comment.