aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/fixtures/mdx-get-headings/src/pages/test-with-frontmatter.mdx
blob: d40537eb8ebeff1e41a705503f508245903ec77b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: The Frontmatter Title
keywords: [Keyword 1, Keyword 2, Keyword 3]
tags:
  - Tag 1
  - Tag 2
  - Tag 3
items:
  - value: Item 1
  - value: Item 2
  - value: Item 3
nested_items:
  nested:
    - value: Nested Item 1
    - value: Nested Item 2
    - value: Nested Item 3
---

# {frontmatter.title}

This ID should be the frontmatter title.

## frontmatter.title

The ID should not be the frontmatter title.

### {frontmatter.keywords[1]}

The ID should be the frontmatter keyword #2.

### {frontmatter.tags[0]}

The ID should be the frontmatter tag #1.

#### {frontmatter.items[1].value}

The ID should be the frontmatter item #2.

##### {frontmatter.nested_items.nested[2].value}

The ID should be the frontmatter nested item #3.

###### {frontmatter.unknown}

This ID should not reference the frontmatter.