|
1 | 1 | // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
2 | 2 |
|
3 | 3 | exports[`rehypeHeadAnchor > basic 1`] = ` |
4 | | -"const frontmatter = {}; |
5 | | -/*prettier-ignore-start*/ |
| 4 | +"/*prettier-ignore-start*/ |
6 | 5 | /*prettier-ignore-end*/ |
7 | 6 | import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
8 | 7 | import {useMDXComponents as _provideComponents} from "@mdx-js/react"; |
@@ -112,15 +111,14 @@ export default function MDXContent(props = {}) { |
112 | 111 | }) : _createMdxContent(props); |
113 | 112 | } |
114 | 113 |
|
115 | | -MDXContent.__RSPRESS_PAGE_META = {}; |
116 | 114 |
|
| 115 | +MDXContent.__RSPRESS_PAGE_META = {}; |
117 | 116 | MDXContent.__RSPRESS_PAGE_META["index.mdx"] = {"toc":[{"id":"custom-id","text":"title 1","depth":2},{"id":"custom-id","text":"title 1","depth":2},{"id":"title-2","text":"title 2","depth":2},{"id":"title-2-1","text":"title 2","depth":2},{"id":"title-2-2","text":"\`title\` 2","depth":2},{"id":"title-2-3","text":"Title 2","depth":2},{"id":"title-2-4","text":"**title** 2","depth":2},{"id":"title-2-5","text":"*title* 2","depth":2}],"title":"Guide","headingTitle":"Guide","frontmatter":{}}; |
118 | 117 | " |
119 | 118 | `; |
120 | 119 |
|
121 | 120 | exports[`rehypeHeadAnchor > should render inline code in title 1`] = ` |
122 | | -"const frontmatter = {}; |
123 | | -import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
| 121 | +"import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
124 | 122 | import {useMDXComponents as _provideComponents} from "@mdx-js/react"; |
125 | 123 | function _createMdxContent(props) { |
126 | 124 | const _components = { |
@@ -155,15 +153,14 @@ export default function MDXContent(props = {}) { |
155 | 153 | }) : _createMdxContent(props); |
156 | 154 | } |
157 | 155 |
|
158 | | -MDXContent.__RSPRESS_PAGE_META = {}; |
159 | 156 |
|
| 157 | +MDXContent.__RSPRESS_PAGE_META = {}; |
160 | 158 | MDXContent.__RSPRESS_PAGE_META["inline-code.mdx"] = {"toc":[],"title":"Hello World \`inline code\`","headingTitle":"Hello World \`inline code\`","frontmatter":{}}; |
161 | 159 | " |
162 | 160 | `; |
163 | 161 |
|
164 | 162 | exports[`rehypeHeadAnchor > should support custom id 1`] = ` |
165 | | -"const frontmatter = {}; |
166 | | -import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
| 163 | +"import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
167 | 164 | import {useMDXComponents as _provideComponents} from "@mdx-js/react"; |
168 | 165 | function _createMdxContent(props) { |
169 | 166 | const _components = { |
@@ -198,15 +195,14 @@ export default function MDXContent(props = {}) { |
198 | 195 | }) : _createMdxContent(props); |
199 | 196 | } |
200 | 197 |
|
201 | | -MDXContent.__RSPRESS_PAGE_META = {}; |
202 | 198 |
|
| 199 | +MDXContent.__RSPRESS_PAGE_META = {}; |
203 | 200 | MDXContent.__RSPRESS_PAGE_META["inline-code.mdx"] = {"toc":[],"title":"Hello World \`inline code\`","headingTitle":"Hello World \`inline code\`","frontmatter":{}}; |
204 | 201 | " |
205 | 202 | `; |
206 | 203 |
|
207 | 204 | exports[`rehypeHeadAnchor > should support mdx component with trim 1`] = ` |
208 | | -"const frontmatter = {}; |
209 | | -import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
| 205 | +"import {jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
210 | 206 | import {useMDXComponents as _provideComponents} from "@mdx-js/react"; |
211 | 207 | function _createMdxContent(props) { |
212 | 208 | const _components = { |
@@ -244,8 +240,8 @@ function _missingMdxReference(id, component) { |
244 | 240 | throw new Error("Expected " + (component ? "component" : "object") + " \`" + id + "\` to be defined: you likely forgot to import, pass, or provide it."); |
245 | 241 | } |
246 | 242 |
|
247 | | -MDXContent.__RSPRESS_PAGE_META = {}; |
248 | 243 |
|
| 244 | +MDXContent.__RSPRESS_PAGE_META = {}; |
249 | 245 | MDXContent.__RSPRESS_PAGE_META["inline-code.mdx"] = {"toc":[],"title":"Hello World ","headingTitle":"Hello World ","frontmatter":{}}; |
250 | 246 | " |
251 | 247 | `; |
0 commit comments