summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorGravatar Corbin Crutchley <crutchcorn@gmail.com> 2022-07-12 06:07:51 -0700
committerGravatar GitHub <noreply@github.com> 2022-07-12 09:07:51 -0400
commitb4cb4a40df33b82bcd36e63bd488bd037e94dbc0 (patch)
tree55c135602c820d89bd6e24270d7a3c4f85f35760 /packages
parentc4f6fdf3722b9bc2192cab735498f4e0c30c982e (diff)
downloadastro-b4cb4a40df33b82bcd36e63bd488bd037e94dbc0.tar.gz
astro-b4cb4a40df33b82bcd36e63bd488bd037e94dbc0.tar.zst
astro-b4cb4a40df33b82bcd36e63bd488bd037e94dbc0.zip
fix: add TypeScript type and documentation for markdown "mode" config (#3883)
* fix: add TypeScript type and documentation for markdown "mode" config * chore: add changeset
Diffstat (limited to 'packages')
-rw-r--r--packages/astro/src/@types/astro.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index fff3f9f6c..78ba9e301 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -515,6 +515,27 @@ export interface AstroUserConfig {
/**
* @docs
+ * @name markdown.mode
+ * @type {'md' | 'mdx'}
+ * @default `mdx`
+ * @description
+ * Control if markdown processing is done using MDX or not.
+ *
+ * MDX processing enables you to use JSX inside your Markdown files. However, there may be instances where you don't want this behavior, and would rather use a "vanilla" markdown processor. This field allows you to control that behavior.
+ *
+ * ```js
+ * {
+ * markdown: {
+ * // Example: Use non-MDX processor for Markdown files
+ * mode: 'md',
+ * }
+ * }
+ * ```
+ */
+ mode?: 'md' | 'mdx';
+
+ /**
+ * @docs
* @name markdown.shikiConfig
* @typeraw {Partial<ShikiConfig>}
* @description