// @ts-check
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import remarkGfm from "remark-gfm";
import remarkWikiLink from "remark-wiki-link";
import remarkCallout from "remark-obsidian-callout";

// https://astro.build/config
export default defineConfig({
  vite: {
    plugins: [tailwindcss()],
  },
  markdown: {
    remarkPlugins: [
      remarkGfm, // Pour tes tableaux d'aventuriers
      [
        remarkWikiLink,
        {
          aliasDivider: "|",
          pathFormat: "obsidian-short",
        },
      ],
      remarkCallout,
    ],
  },
});
