feat: remove markdown build helpers

This commit is contained in:
2025-12-31 18:23:28 -05:00
parent d351d3d8b6
commit 5c1d7f4b67
8 changed files with 137 additions and 183 deletions

29
app.config.ts Normal file
View File

@@ -0,0 +1,29 @@
import { defineConfig } from "@solidjs/start/config";
import pkg from "@vinxi/plugin-mdx";
import tailwindcss from "@tailwindcss/vite";
import rehypePrismPlus from "rehype-prism-plus";
import rehypeMdxCodeProps from "rehype-mdx-code-props";
import remarkFrontmatter from "remark-frontmatter";
import { blogPostsPlugin } from "./build-helpers/blogPostsPlugin";
const { default: mdx } = pkg;
export default defineConfig({
extensions: ["mdx", "md"],
vite: () => ({
plugins: [
tailwindcss(),
blogPostsPlugin(),
mdx.withImports({})({
jsx: true,
jsxImportSource: "solid-js",
providerImportSource: "solid-mdx",
remarkPlugins: [remarkFrontmatter],
rehypePlugins: [
[rehypePrismPlus, { ignoreMissing: true }],
rehypeMdxCodeProps,
],
}),
],
}),
});