From 61f7e16491e97d0e396dfe25647d945d765fbb77 Mon Sep 17 00:00:00 2001 From: Georgey Date: Mon, 24 Oct 2022 23:52:34 +0530 Subject: [PATCH] Update README.md (#5179) Hey there, so recently I was playing around the mdx, and wanted my users to navigate to a specific section in my article using the `id` tags. This was not happening when I was making custom components. When I pass the Astro props like above, the id was automatically getting passed for headings. --- packages/integrations/mdx/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/integrations/mdx/README.md b/packages/integrations/mdx/README.md index 57acc5c8cb..0f287b44b1 100644 --- a/packages/integrations/mdx/README.md +++ b/packages/integrations/mdx/README.md @@ -319,7 +319,11 @@ will be converted into this HTML: But what if you want to specify your own markup for these blockquotes? In the above example, you could create a custom `
` component (in any language) that either has a `` component or accepts a `children` prop. ```astro title="src/components/Blockquote.astro" -
+--- +const props = Astro.props; +--- + +