From 1a019075819d3f6086d605bb38061d31ac3f6e3c Mon Sep 17 00:00:00 2001 From: riiim400th Date: Tue, 30 Dec 2025 03:30:13 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20feat:=20=20style=20to=20blockqu?= =?UTF-8?q?ote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/BlogLayout.astro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index 504c5db..bc69676 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -307,6 +307,27 @@ const authorX = author?.links?.find(l => l.name === 'X')?.id; background-color: #efefef; } } + + blockquote { + margin-left: 0; + margin-right: 0; + padding: calc($space-sp * 0.8) calc($space-sp); + border-left: 4px solid #efefef; + background-color: #fafafa; + color: #555; + + @media (min-width: 768px) { + padding: calc($space * 0.8) calc($space); + } + + > :first-child { + margin-top: 0; + } + + > :last-child { + margin-bottom: 0; + } + } } .remark-link-card-plus__container { From fd52a143cb56521e77e76b6ac51c41e86aba21d0 Mon Sep 17 00:00:00 2001 From: riiim400th Date: Tue, 30 Dec 2025 03:30:44 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9C=A8=20feat:=20remark-breaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 2 ++ package.json | 1 + pnpm-lock.yaml | 22 +++++++++++++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 74e6638..1e8b294 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,6 +6,7 @@ import partytown from '@astrojs/partytown'; import rehypeToc from 'rehype-toc'; import rehypeSlug from 'rehype-slug'; import remarkLinkCard from 'remark-link-card-plus'; +import remarkBreaks from "remark-breaks"; // https://astro.build/config export default defineConfig({ @@ -28,6 +29,7 @@ export default defineConfig({ markdown: { rehypePlugins: [rehypeSlug, [rehypeToc, { headings: ['h2', 'h3', 'h4'] }]], remarkPlugins: [ + remarkBreaks, [ remarkLinkCard, { cache: false, shortenUrl: true, thumbnailPosition: 'left' }, diff --git a/package.json b/package.json index 9b320c2..f93448d 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "react-dom": "^18.3.1", "rehype-slug": "^6.0.0", "rehype-toc": "^3.0.2", + "remark-breaks": "^4.0.0", "remark-link-card-plus": "^0.7.2", "satori": "^0.10.13", "sharp": "^0.33.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b329f86..34f8585 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,6 +92,9 @@ importers: rehype-toc: specifier: ^3.0.2 version: 3.0.2 + remark-breaks: + specifier: ^4.0.0 + version: 4.0.0 remark-link-card-plus: specifier: ^0.7.2 version: 0.7.2 @@ -1329,7 +1332,7 @@ packages: resolution: {integrity: sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: npm:@rollup/wasm-node@^4.41.1 + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 peerDependenciesMeta: rollup: optional: true @@ -2264,6 +2267,9 @@ packages: mdast-util-gfm@3.1.0: resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==} + mdast-util-newline-to-break@2.0.0: + resolution: {integrity: sha512-MbgeFca0hLYIEx/2zGsszCSEJJ1JSCdiY5xQxRcLDDGa8EPvlLPupJ4DSajbMPAnC0je8jfb9TiUATnxxrHUog==} + mdast-util-phrasing@4.1.0: resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} @@ -2751,6 +2757,9 @@ packages: rehype@13.0.2: resolution: {integrity: sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A==} + remark-breaks@4.0.0: + resolution: {integrity: sha512-IjEjJOkH4FuJvHZVIW0QCDWxcG96kCq7An/KVH2NfJe6rKZU2AsHeB3OEjPNRxi4QC34Xdx7I2KGYn6IpT7gxQ==} + remark-gfm@4.0.1: resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==} @@ -5830,6 +5839,11 @@ snapshots: transitivePeerDependencies: - supports-color + mdast-util-newline-to-break@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-find-and-replace: 3.0.2 + mdast-util-phrasing@4.1.0: dependencies: '@types/mdast': 4.0.4 @@ -6379,6 +6393,12 @@ snapshots: rehype-stringify: 10.0.1 unified: 11.0.5 + remark-breaks@4.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-newline-to-break: 2.0.0 + unified: 11.0.5 + remark-gfm@4.0.1: dependencies: '@types/mdast': 4.0.4 From d42264ca6fd8c146e88ed97c3ba32dfe0d2c6efe Mon Sep 17 00:00:00 2001 From: riiim400th Date: Tue, 30 Dec 2025 03:38:32 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9E=20fix:=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 1e8b294..f67f585 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,7 +6,7 @@ import partytown from '@astrojs/partytown'; import rehypeToc from 'rehype-toc'; import rehypeSlug from 'rehype-slug'; import remarkLinkCard from 'remark-link-card-plus'; -import remarkBreaks from "remark-breaks"; +import remarkBreaks from 'remark-breaks'; // https://astro.build/config export default defineConfig({