Improve imported blog post rendering
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Neeldhara Misra 2026-06-25 03:46:34 +05:30
parent 165aa5636f
commit 8312dc6d8a
12 changed files with 486 additions and 15 deletions

View file

@ -2,6 +2,7 @@
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import rehypeKatex from "rehype-katex";
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
import sitemap from "@astrojs/sitemap";
@ -9,9 +10,17 @@ import react from "@astrojs/react";
// @ts-ignore - TailwindCSS v4 Vite plugin has type compatibility issues with Astro
import tailwindcss from "@tailwindcss/vite";
import remarkCallouts from "../../src/remark-callouts.mjs";
import remarkCodeFenceLanguages from "../../src/remark-code-fence-languages.mjs";
import remarkInlineFootnotes from "../../src/remark-inline-footnotes.mjs";
import { ACTIVE_BLOG_SITE } from "./src/blog-sites.js";
const remarkPlugins = [remarkMath, remarkCallouts];
const remarkPlugins = [
remarkGfm,
remarkInlineFootnotes,
remarkCodeFenceLanguages,
remarkMath,
remarkCallouts,
];
const rehypePlugins = [rehypeKatex];
// https://astro.build/config