/** * remake-blocks * * Astro 6 integration for rendering GitHub-style callouts, enhanced * blockquotes, and disclosure widgets in Markdown content. * * @example * ```ts * // astro.config.mjs * import { defineConfig } from "astro/config"; * import remakeBlocks from "remake-blocks/astro"; * * export default defineConfig({ * integrations: [remakeBlocks()], * }); * ``` * * @example With custom callout types: * ```ts * export default defineConfig({ * integrations: [ * remakeBlocks({ * customCallouts: [ * { * type: "example", * icon: "💡", * className: "callout-example", * defaultTitle: "Example", * color: "#8b5cf6", * backgroundColor: "#f5f3ff", * }, * ], * }), * ], * }); * ``` */ import type { AstroIntegration } from "astro"; import type { AstroRemakeBlocksOptions } from "./types.js"; export type { AstroRemakeBlocksOptions, RemakeBlocksOptions, CalloutConfig, CalloutType, BuiltinCalloutType, ParsedCallout } from "./types.js"; export { remarkRemakeBlocks, remarkCalloutBlocks } from "./remark-remake-blocks.js"; export { generateCss, generateMinimalThemeCss } from "./css-generator.js"; /** * Create the `remake-blocks` Astro integration. * * This integration: * 1. Registers the `remarkRemakeBlocks` remark plugin so that GitHub-style * admonition directives (`> [!NOTE]`, `> [!TIP]`, etc.) inside blockquotes * are transformed into styled callout HTML elements. * 2. Supports disclosure widgets via `> [!] Title` syntax. * 3. Optionally injects the default CSS styles into every page. * 4. Optionally enhances regular blockquotes with improved styling. * * @param options - Plugin configuration options. * @returns An Astro integration object. */ export default function remakeBlocks(options?: AstroRemakeBlocksOptions | null | undefined): AstroIntegration; //# sourceMappingURL=astro.d.ts.map