Links in markdown headings, corrected date
This commit is contained in:
parent
8849d70735
commit
70b0893df8
5 changed files with 188 additions and 39 deletions
|
@ -2,6 +2,9 @@ import { defineConfig } from 'astro/config';
|
|||
|
||||
import compress from "astro-compress";
|
||||
import remarkUnwrapImages from 'remark-unwrap-images';
|
||||
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
|
@ -12,5 +15,13 @@ export default defineConfig({
|
|||
markdown: {
|
||||
syntaxHighlight: "shiki",
|
||||
remarkPlugins: [remarkUnwrapImages],
|
||||
rehypePlugins: [
|
||||
rehypeSlug,
|
||||
rehypeHeadingIds,
|
||||
[
|
||||
rehypeAutolinkHeadings,
|
||||
{ behavior: "append" },
|
||||
],
|
||||
],
|
||||
},
|
||||
});
|
Loading…
Add table
Reference in a new issue