Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(core): document Markdown's components prop (#4163) (#4319)

Ojas Mutrejac5c7e5427b6b
diff --git a/.changeset/content-component-contract-docs-tjsk.md b/.changeset/content-component-contract-docs-tjsk.md
new file mode 100644
index 0000000000..00a2df2ce5
--- /dev/null
+++ b/.changeset/content-component-contract-docs-tjsk.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] document the missing components prop on Markdown (#4163)
+
+@HelloOjasMutreja
diff --git a/packages/core/src/Markdown/Markdown.doc.mjs b/packages/core/src/Markdown/Markdown.doc.mjs
index 153128c5f1..b6838d79e7 100644
--- a/packages/core/src/Markdown/Markdown.doc.mjs
+++ b/packages/core/src/Markdown/Markdown.doc.mjs
@@ -96,6 +96,11 @@ export const docs = {
description:
"Opt-in autolinking of bare URLs and emails. 'gfm' applies GitHub-Flavored Markdown autolink-literal rules: bare https?://..., www...., <scheme:url>, <email>, and user@host all become links. Trailing sentence punctuation and unbalanced trailing close-parens are excluded; matches inside code spans, code blocks, existing links, and image alt text are skipped. Default behavior (option unset) is unchanged.",
},
+ {
+ name: 'components',
+ type: 'MarkdownComponents',
+ description: 'Custom React component overrides for rendered Markdown elements (code, inlineCode, link, heading, paragraph, image, blockquote, hr, citation).',
+ },
{
name: 'xstyle',
type: 'StyleXStyles',