finished markdown for docs
This commit is contained in:
@@ -3,6 +3,9 @@ import minify from 'astro-min';
|
||||
import metaTags from "astro-meta-tags";
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
||||
import remarkDirective from 'remark-directive';
|
||||
import remarkCalloutDirectives from "@microflash/remark-callout-directives"
|
||||
import remarkExternalLinks from 'remark-external-links';
|
||||
|
||||
import mdx from "@astrojs/mdx";
|
||||
|
||||
@@ -11,8 +14,9 @@ export default defineConfig({
|
||||
integrations: [minify(), metaTags(), mdx()],
|
||||
markdown: {
|
||||
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, {
|
||||
behavior: 'prepend'
|
||||
behavior: 'wrap'
|
||||
}]],
|
||||
remarkPlugins: [remarkDirective, remarkCalloutDirectives, [remarkExternalLinks, { target: '_blank' }]],
|
||||
drafts: true,
|
||||
shikiConfig: {
|
||||
theme: 'dracula'
|
||||
|
Reference in New Issue
Block a user