Skip to content

Commit 4163432

Browse files
committed
feat: MVP release
1 parent 5be6c09 commit 4163432

File tree

18 files changed

+1424
-364
lines changed

18 files changed

+1424
-364
lines changed

content-collections.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { defineCollection, defineConfig } from '@content-collections/core';
22
import { compileMarkdown } from '@content-collections/markdown';
3+
import remarkGfm from 'remark-gfm';
4+
import rehypeCallouts from 'rehype-callouts';
5+
import rehypeStarryNight from 'rehype-starry-night';
6+
import rehypeStringify from 'rehype-stringify';
7+
38
import { z } from 'zod';
49

510
// for more information on configuration, visit:
@@ -18,7 +23,20 @@ const notes = defineCollection({
1823
content: z.string()
1924
}),
2025
transform: async (document, context) => {
21-
const html = await compileMarkdown(context, document);
26+
const html = await compileMarkdown(
27+
context,
28+
document,
29+
{
30+
remarkPlugins: [
31+
remarkGfm,
32+
],
33+
rehypePlugins: [
34+
rehypeCallouts,
35+
rehypeStarryNight,
36+
rehypeStringify
37+
]
38+
}
39+
);
2240
return {
2341
...document,
2442
html

0 commit comments

Comments
 (0)