Skip to content

Commit 8eb755e

Browse files
committed
fix: correctly render markdown
1 parent 2474962 commit 8eb755e

14 files changed

+2768
-1313
lines changed

.prettierrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"plugins": ["prettier-plugin-tailwindcss"],
3-
"singleQuote": false,
4-
"useTabs": true
2+
"plugins": ["prettier-plugin-tailwindcss"],
3+
"singleQuote": false,
4+
"useTabs": true
55
}

.vscode/extensions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"recommendations": [
3-
"astro-build.astro-vscode",
4-
"bradlc.vscode-tailwindcss",
5-
"esbenp.prettier-vscode"
6-
],
7-
"unwantedRecommendations": []
2+
"recommendations": [
3+
"astro-build.astro-vscode",
4+
"bradlc.vscode-tailwindcss",
5+
"esbenp.prettier-vscode"
6+
],
7+
"unwantedRecommendations": []
88
}

.vscode/launch.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"command": "./node_modules/.bin/astro dev",
6-
"name": "Development server",
7-
"request": "launch",
8-
"type": "node-terminal"
9-
}
10-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
1111
}

astro.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ import partytown from "@astrojs/partytown";
88

99
import sitemap from "@astrojs/sitemap";
1010

11+
import remarkToc from "remark-toc";
12+
import rehypeSlug from "rehype-slug";
13+
import rehypeAutolinkHeadings from "rehype-autolink-headings";
14+
1115
// https://astro.build/config
1216
export default defineConfig({
1317
site: "https://ringoldsdev.github.io/",
18+
prefetch: true,
1419
integrations: [
1520
alpinejs({ entrypoint: "/src/entrypoint.ts" }),
1621
mdx(),
@@ -20,4 +25,11 @@ export default defineConfig({
2025
vite: {
2126
plugins: [tailwindcss()],
2227
},
28+
markdown: {
29+
remarkPlugins: [[remarkToc, { heading: "contents" }]],
30+
rehypePlugins: [
31+
rehypeSlug,
32+
[rehypeAutolinkHeadings, { behavior: "append" }],
33+
],
34+
},
2335
});

package.json

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
{
2-
"name": "ringolds.dev",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"build": "astro build",
8-
"preview": "astro preview",
9-
"astro": "astro",
10-
"format": "prettier --write ."
11-
},
12-
"dependencies": {
13-
"@alpinejs/intersect": "^3.14.9",
14-
"@astrojs/alpinejs": "^0.4.8",
15-
"@astrojs/mdx": "^4.2.6",
16-
"@astrojs/partytown": "^2.1.4",
17-
"@astrojs/rss": "^4.0.11",
18-
"@astrojs/sitemap": "^3.3.1",
19-
"alpinejs": "^3.14.9",
20-
"astro": "^5.7.12",
21-
"tailwindcss": "^4.1.5"
22-
},
23-
"devDependencies": {
24-
"@tailwindcss/vite": "^4.1.5",
25-
"@types/alpinejs": "^3.13.11",
26-
"@types/alpinejs__intersect": "^3.13.4",
27-
"prettier": "^3.5.3",
28-
"prettier-plugin-tailwindcss": "^0.6.11"
29-
}
2+
"name": "ringolds.dev",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"build": "astro build",
8+
"preview": "astro preview",
9+
"astro": "astro",
10+
"format": "prettier --write ."
11+
},
12+
"dependencies": {
13+
"@alpinejs/intersect": "^3.14.9",
14+
"@astrojs/alpinejs": "^0.4.8",
15+
"@astrojs/mdx": "^4.2.6",
16+
"@astrojs/partytown": "^2.1.4",
17+
"@astrojs/rss": "^4.0.11",
18+
"@astrojs/sitemap": "^3.3.1",
19+
"alpinejs": "^3.14.9",
20+
"astro": "^5.7.12",
21+
"rehype-autolink-headings": "^7.1.0",
22+
"rehype-slug": "^6.0.0",
23+
"remark-toc": "^9.0.0",
24+
"tailwindcss": "^4.1.5"
25+
},
26+
"devDependencies": {
27+
"@tailwindcss/vite": "^4.1.5",
28+
"@types/alpinejs": "^3.13.11",
29+
"@types/alpinejs__intersect": "^3.13.4",
30+
"prettier": "^3.5.3",
31+
"prettier-plugin-tailwindcss": "^0.6.11"
32+
}
3033
}

0 commit comments

Comments
 (0)