feat: add remark-unwrap-images for improved image handling

This commit is contained in:
2026-03-18 13:08:08 +09:00
parent 275cf5ca08
commit 06a723c15d
3 changed files with 19 additions and 48 deletions
+2
View File
@@ -4,6 +4,7 @@ import mdx from "@astrojs/mdx";
import tailwindcss from "@tailwindcss/vite";
import icon from "astro-icon";
import remarkReadingTime from "remark-reading-time";
import remarkUnwrapImages from "remark-unwrap-images";
export default defineConfig({
site: "https://astrostarterpro.com/",
@@ -17,6 +18,7 @@ export default defineConfig({
file.data.readingTime.minutes;
};
},
remarkUnwrapImages,
],
},
i18n: {
+16 -48
View File
@@ -18,6 +18,7 @@
"astro": "^6.0.4",
"astro-icon": "^1.1.5",
"remark-reading-time": "^2.0.2",
"remark-unwrap-images": "^4.0.1",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3"
},
@@ -1247,9 +1248,6 @@
"cpu": [
"arm"
],
"libc": [
"glibc"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1266,9 +1264,6 @@
"cpu": [
"arm64"
],
"libc": [
"glibc"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1285,9 +1280,6 @@
"cpu": [
"ppc64"
],
"libc": [
"glibc"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1304,9 +1296,6 @@
"cpu": [
"riscv64"
],
"libc": [
"glibc"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1323,9 +1312,6 @@
"cpu": [
"s390x"
],
"libc": [
"glibc"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1342,9 +1328,6 @@
"cpu": [
"x64"
],
"libc": [
"glibc"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1361,9 +1344,6 @@
"cpu": [
"arm64"
],
"libc": [
"musl"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1380,9 +1360,6 @@
"cpu": [
"x64"
],
"libc": [
"musl"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1399,9 +1376,6 @@
"cpu": [
"arm"
],
"libc": [
"glibc"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1424,9 +1398,6 @@
"cpu": [
"arm64"
],
"libc": [
"glibc"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1449,9 +1420,6 @@
"cpu": [
"ppc64"
],
"libc": [
"glibc"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1474,9 +1442,6 @@
"cpu": [
"riscv64"
],
"libc": [
"glibc"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1499,9 +1464,6 @@
"cpu": [
"s390x"
],
"libc": [
"glibc"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1524,9 +1486,6 @@
"cpu": [
"x64"
],
"libc": [
"glibc"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1549,9 +1508,6 @@
"cpu": [
"arm64"
],
"libc": [
"musl"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1574,9 +1530,6 @@
"cpu": [
"x64"
],
"libc": [
"musl"
],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -9660,6 +9613,21 @@
"url": "https://opencollective.com/unified"
}
},
"node_modules/remark-unwrap-images": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/remark-unwrap-images/-/remark-unwrap-images-4.0.1.tgz",
"integrity": "sha512-J9HibCHx0/X7ovgqaFe0otizCHpbb1s6Jh3IeiD5ibQm2Oz/OhCDXSKMEW5T54iBw5CxuqRL6BrYp+jLLdqBOw==",
"license": "MIT",
"dependencies": {
"@types/mdast": "^4.0.0",
"hast-util-whitespace": "^3.0.0",
"unist-util-visit": "^5.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/request-light": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/request-light/-/request-light-0.7.0.tgz",
+1
View File
@@ -28,6 +28,7 @@
"astro": "^6.0.4",
"astro-icon": "^1.1.5",
"remark-reading-time": "^2.0.2",
"remark-unwrap-images": "^4.0.1",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3"
},