diff --git a/astro.config.mjs b/astro.config.mjs index eca5863..f3a1fb9 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,10 +4,17 @@ import react from "@astrojs/react"; import starlight from "@astrojs/starlight"; import sitemap from "@astrojs/sitemap"; +import remarkBreaks from "remark-breaks"; + // https://astro.build/config export default defineConfig({ site: "https://ayc0.github.io", base: "/", // We need the trailing / here otherwise links in the site will be broken + + markdown: { + remarkPlugins: [remarkBreaks], + }, + integrations: [ react({ exclude: ["**/page-react-timings/*"], diff --git a/package.json b/package.json index ef98fce..8b7353a 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "prettier": "^3.4.2", "prettier-plugin-astro": "^0.14.1", "reading-time": "^1.5.0", + "remark-breaks": "^4.0.0", "typescript": "^5.7.2" } } diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index e50985d..851d83d 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -24,8 +24,9 @@ import { CardGrid, Card, LinkCard } from "@astrojs/starlight/components"; style="text-decoration: none; color: initial; display: grid" > - Listing of all CSS length units available, with their definitions, links - to doc, and live visualization of their sizes + { + "Listing of all CSS length units available, with their definitions, links to doc, and live visualization of their sizes" + } - Experiment around React, life cycles, timings, and different rendering - modes + { + "Experiment around React, life cycles, timings, and different rendering modes" + } A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). diff --git a/src/content/docs/posts/Dark mode/light-dark-mode-avoid-flickering-on-reload.mdx b/src/content/docs/posts/Dark mode/light-dark-mode-avoid-flickering-on-reload.mdx index dd6a183..e8608ce 100644 --- a/src/content/docs/posts/Dark mode/light-dark-mode-avoid-flickering-on-reload.mdx +++ b/src/content/docs/posts/Dark mode/light-dark-mode-avoid-flickering-on-reload.mdx @@ -25,8 +25,7 @@ Here is an example of this magnified: The way the browsers work is that if there is a `