mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
52e75475ae
commit
29f420bb0e
1 changed files with 35 additions and 35 deletions
|
@ -157,41 +157,41 @@ export interface AstroUserConfig {
|
|||
/** @deprecated - Use "integrations" instead. Run Astro to learn more about migrating. */
|
||||
renderers?: string[];
|
||||
|
||||
/**
|
||||
* @docs
|
||||
* @name markdownOptions
|
||||
* @type {{render: MarkdownRenderOptions}}
|
||||
* @see [Markdown guide](/en/guides/markdown-content/)
|
||||
* @description
|
||||
* Configure how markdown files (`.md`) are rendered.
|
||||
*
|
||||
* ```js
|
||||
* import { defineConfig } from "astro/config";
|
||||
* import astroRemark from "@astrojs/markdown-remark";
|
||||
* import customRehypePlugin from "/path/to/rehypePlugin.mjs";
|
||||
*
|
||||
* export default defineConfig({
|
||||
* // Enable Custom Markdown options, plugins, etc.
|
||||
* markdownOptions: {
|
||||
* render: [
|
||||
* // The Remark parser to parse Markdown content
|
||||
* astroRemark,
|
||||
* {
|
||||
* // Add a Remark plugin to your project.
|
||||
* remarkPlugins: ["remark-code-titles"],
|
||||
*
|
||||
* // Add a Rehype plugin to your project.
|
||||
* rehypePlugins: [
|
||||
* "rehype-slug",
|
||||
* [customRehypePlugin, { configKey: "value" }],
|
||||
* ["rehype-autolink-headings", { behavior: "prepend" }],
|
||||
* ],
|
||||
* },
|
||||
* ],
|
||||
* },
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
/**
|
||||
* @docs
|
||||
* @name markdownOptions
|
||||
* @type {{render: MarkdownRenderOptions}}
|
||||
* @see [Markdown guide](/en/guides/markdown-content/)
|
||||
* @description
|
||||
* Configure how markdown files (`.md`) are rendered.
|
||||
*
|
||||
* ```js
|
||||
* import { defineConfig } from "astro/config";
|
||||
* import astroRemark from "@astrojs/markdown-remark";
|
||||
* import customRehypePlugin from "/path/to/rehypePlugin.mjs";
|
||||
*
|
||||
* export default defineConfig({
|
||||
* // Enable Custom Markdown options, plugins, etc.
|
||||
* markdownOptions: {
|
||||
* render: [
|
||||
* // The Remark parser to parse Markdown content
|
||||
* astroRemark,
|
||||
* {
|
||||
* // Add a Remark plugin to your project.
|
||||
* remarkPlugins: ["remark-code-titles"],
|
||||
*
|
||||
* // Add a Rehype plugin to your project.
|
||||
* rehypePlugins: [
|
||||
* "rehype-slug",
|
||||
* [customRehypePlugin, { configKey: "value" }],
|
||||
* ["rehype-autolink-headings", { behavior: "prepend" }],
|
||||
* ],
|
||||
* },
|
||||
* ],
|
||||
* },
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
markdownOptions?: {
|
||||
render?: MarkdownRenderOptions;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue