Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/site/next.mdx.plugins.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import remarkHeadings from '@vcarl/remark-headings';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeMermaid from 'rehype-mermaid';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
import readingTime from 'remark-reading-time';
Expand All @@ -14,6 +15,9 @@ import rehypeShikiji from './next.mdx.shiki.mjs';
* @type {Array<import('unified').Plugin>}
*/
export const REHYPE_PLUGINS = [
// Transforms Mermaid code blocks into SVGs
// note: needs to be imported before rehype-shiki to prevent transforming into code-blocks
[rehypeMermaid, { strategy: 'inline-svg', dark: true }],
// Generates `id` attributes for headings (H1, ...)
rehypeSlug,
// Automatically add anchor links to headings (H1, ...)
Expand Down
2 changes: 2 additions & 0 deletions apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@
"next": "15.3.1",
"next-intl": "~4.1.0",
"next-themes": "~0.4.6",
"playwright": "^1.52.0",
"postcss": "~8.5.3",
"postcss-calc": "~10.1.1",
"postcss-loader": "~8.1.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"reading-time": "~1.5.0",
"rehype-autolink-headings": "~7.1.0",
"rehype-mermaid": "^3.0.0",
"rehype-slug": "~6.0.0",
"remark-gfm": "~4.0.1",
"remark-reading-time": "~2.0.1",
Expand Down
Loading
Loading