|
| 1 | +// Rstest Snapshot v1 |
| 2 | + |
| 3 | +exports[`toc > basic link in heading 1`] = ` |
| 4 | +"import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from "react/jsx-runtime"; |
| 5 | +import {useMDXComponents as _provideComponents} from "@mdx-js/react"; |
| 6 | +import {Callout as $$$callout$$$} from "@theme"; |
| 7 | +import {Link} from '@theme'; |
| 8 | +function _createMdxContent(props) { |
| 9 | + const _components = { |
| 10 | + a: "a", |
| 11 | + code: "code", |
| 12 | + h1: "h1", |
| 13 | + h2: "h2", |
| 14 | + strong: "strong", |
| 15 | + ..._provideComponents(), |
| 16 | + ...props.components |
| 17 | + }; |
| 18 | + return _jsxs(_Fragment, { |
| 19 | + children: [_jsxs(_components.h1, { |
| 20 | + id: "link", |
| 21 | + children: [_jsx(_components.a, { |
| 22 | + className: "rp-header-anchor", |
| 23 | + "aria-hidden": "true", |
| 24 | + href: "#link", |
| 25 | + children: "#" |
| 26 | + }), "link"] |
| 27 | + }), "\\n", _jsxs(_components.h2, { |
| 28 | + id: "this-is-link-rsbuild", |
| 29 | + children: [_jsx(_components.a, { |
| 30 | + className: "rp-header-anchor", |
| 31 | + "aria-hidden": "true", |
| 32 | + href: "#this-is-link-rsbuild", |
| 33 | + children: "#" |
| 34 | + }), "this is link ", _jsx(_components.a, { |
| 35 | + href: "https://rsbuild.rs", |
| 36 | + rel: "noopener noreferrer", |
| 37 | + target: "_blank", |
| 38 | + children: "rsbuild" |
| 39 | + })] |
| 40 | + }), "\\n", _jsxs(_components.h2, { |
| 41 | + id: "this-is-link", |
| 42 | + children: [_jsx(_components.a, { |
| 43 | + className: "rp-header-anchor", |
| 44 | + "aria-hidden": "true", |
| 45 | + href: "#this-is-link", |
| 46 | + children: "#" |
| 47 | + }), "this is link ", _jsx(Link, { |
| 48 | + href: "https://rsbuild.rs" |
| 49 | + })] |
| 50 | + }), "\\n", _jsxs(_components.h2, { |
| 51 | + id: "this-is-bold-link", |
| 52 | + children: [_jsx(_components.a, { |
| 53 | + className: "rp-header-anchor", |
| 54 | + "aria-hidden": "true", |
| 55 | + href: "#this-is-bold-link", |
| 56 | + children: "#" |
| 57 | + }), "this is bold link ", _jsx(_components.a, { |
| 58 | + href: "https://rsbuild.rs", |
| 59 | + rel: "noopener noreferrer", |
| 60 | + target: "_blank", |
| 61 | + children: _jsx(_components.strong, { |
| 62 | + children: "rsbuild" |
| 63 | + }) |
| 64 | + })] |
| 65 | + }), "\\n", _jsxs(_components.h2, { |
| 66 | + id: "this-is-code-link", |
| 67 | + children: [_jsx(_components.a, { |
| 68 | + className: "rp-header-anchor", |
| 69 | + "aria-hidden": "true", |
| 70 | + href: "#this-is-code-link", |
| 71 | + children: "#" |
| 72 | + }), "this is code link ", _jsx(_components.a, { |
| 73 | + href: "https://rsbuild.rs", |
| 74 | + rel: "noopener noreferrer", |
| 75 | + target: "_blank", |
| 76 | + children: _jsx(_components.code, { |
| 77 | + children: "rsbuild" |
| 78 | + }) |
| 79 | + })] |
| 80 | + }), "\\n", _jsxs(_components.h2, { |
| 81 | + id: "this-is-bold-code-link", |
| 82 | + children: [_jsx(_components.a, { |
| 83 | + className: "rp-header-anchor", |
| 84 | + "aria-hidden": "true", |
| 85 | + href: "#this-is-bold-code-link", |
| 86 | + children: "#" |
| 87 | + }), "this is bold code link ", _jsx(_components.a, { |
| 88 | + href: "https://rsbuild.rs", |
| 89 | + rel: "noopener noreferrer", |
| 90 | + target: "_blank", |
| 91 | + children: _jsx(_components.strong, { |
| 92 | + children: _jsx(_components.code, { |
| 93 | + children: "rsbuild" |
| 94 | + }) |
| 95 | + }) |
| 96 | + })] |
| 97 | + })] |
| 98 | + }); |
| 99 | +} |
| 100 | +export default function MDXContent(props = {}) { |
| 101 | + const {wrapper: MDXLayout} = { |
| 102 | + ..._provideComponents(), |
| 103 | + ...props.components |
| 104 | + }; |
| 105 | + return MDXLayout ? _jsx(MDXLayout, { |
| 106 | + ...props, |
| 107 | + children: _jsx(_createMdxContent, { |
| 108 | + ...props |
| 109 | + }) |
| 110 | + }) : _createMdxContent(props); |
| 111 | +} |
| 112 | +
|
| 113 | +
|
| 114 | +MDXContent.__RSPRESS_PAGE_META = {}; |
| 115 | +MDXContent.__RSPRESS_PAGE_META["index.mdx"] = {"toc":[{"id":"this-is-link-rsbuild","text":"this is link rsbuild","depth":2},{"id":"this-is-link","text":"this is link","depth":2},{"id":"this-is-bold-link-rsbuild","text":"this is bold link **rsbuild**","depth":2},{"id":"this-is-code-link-rsbuild","text":"this is code link \`rsbuild\`","depth":2},{"id":"this-is-bold-code-link-rsbuild","text":"this is bold code link **\`rsbuild\`**","depth":2}],"title":"link","headingTitle":"link","frontmatter":{}}; |
| 116 | +" |
| 117 | +`; |
0 commit comments