Skip to content

Commit

Permalink
Address #7 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim authored Mar 5, 2024
1 parent c6ec6a7 commit c8c6152
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 18 deletions.
23 changes: 14 additions & 9 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import compressor from "astro-compressor";
import compressor from 'astro-compressor';
import sitemap from '@astrojs/sitemap';
import robotsTxt from 'astro-robots-txt';
import { VitePWA } from 'vite-plugin-pwa';
import rehypeKatex from 'rehype-katex'; // relevant
import remarkMath from 'remark-math'; // relevant
import remarkMath from 'remark-math'; // relevant
import remarkToc from 'remark-toc';

import { manifest } from './src/utils/manifest';

Expand All @@ -23,14 +24,18 @@ export default defineConfig({
theme: 'material-theme-palenight',
wrap: false,
},
remarkPlugins: [
remarkMath,
],
remarkPlugins: [remarkMath, remarkToc],
rehypePlugins: [
[rehypeKatex, {
// Katex plugin options
}]
]
[
rehypeKatex,
{
// Katex plugin options
},
],
'rehype-slug',
['rehype-autolink-headings', { behavior: 'append' }],
['rehype-toc', { headings: ['h1', 'h2', 'h3'] }],
],
},
integrations: [
mdx({
Expand Down
Loading

0 comments on commit c8c6152

Please sign in to comment.