You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/integrations-guide/mdx.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ The following properties are available to a `.astro` component when using an `im
147
147
-**`file`** - The absolute file path (e.g. `/home/user/projects/.../file.mdx`).
148
148
-**`url`** - The URL of the page (e.g. `/en/guides/markdown-content`).
149
149
-**`frontmatter`** - Contains any data specified in the file’s YAML/TOML frontmatter.
150
-
-**`getHeadings()`** - An async function that returns an array of all headings (`<h1>` to `<h6>`) in the file with the type: `{ depth: number; slug: string; text: string }[]`. Each heading’s `slug` corresponds to the generated ID for a given heading and can be used for anchor links.
150
+
-**`getHeadings()`** - An async function that returns an array of all headings (`<h1>` to `<h6>`) in the file with the type: `{ depth: number; slug: string; text: string }[]`. Each heading’s `slug` corresponds to the generated ID for a given heading and can be used for anchor links. Headings from imported files are not included.
151
151
-**`<Content />`** - A component that returns the full, rendered contents of the file.
152
152
-**(any `export` value)** - MDX files can also export data with an `export` statement.
0 commit comments