Skip to content

Commit

Permalink
Astro 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 9, 2024
1 parent 8f9570b commit 9611f6e
Show file tree
Hide file tree
Showing 64 changed files with 4,791 additions and 3,583 deletions.
10 changes: 8 additions & 2 deletions 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 remarkCustomHeaderId from 'remark-custom-header-id';
/// import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import {SITE} from './source/config.mjs';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand All @@ -29,8 +30,13 @@ export default defineConfig({
],
markdown: {
remarkPlugins: [
remarkHeadingId,
remarkCustomHeaderId,
],
// TODO
// rehypePlugins: [
// rehypeHeadingIds,
// [rehypeAutolinkHeadings, {behavior: 'wrap'}],
// ]
},
vite: {
resolve: {
Expand Down
Loading

0 comments on commit 9611f6e

Please sign in to comment.