File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed
__fixtures__/toml-with-content Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ /*@jsxRuntime automatic @jsxImportSource react*/
2
+ export const title = "Hello TOML" ;
3
+ function MDXContent ( props = { } ) {
4
+ const _components = Object . assign ( {
5
+ h1 : "h1" ,
6
+ p : "p"
7
+ } , props . components ) , { wrapper : MDXLayout } = _components ;
8
+ const _content = < > < _components . h1 > { "Hello, World" } </ _components . h1 > { "\n" } < _components . p > { "Some content" } </ _components . p > </ > ;
9
+ return MDXLayout ? < MDXLayout { ...props } > { _content } </ MDXLayout > : _content ;
10
+ }
11
+ export default MDXContent ;
Original file line number Diff line number Diff line change
1
+ +++
2
+ title = " Hello TOML"
3
+ +++
4
+
5
+ # Hello, World
6
+
7
+ Some content
Original file line number Diff line number Diff line change
1
+ {}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const remarkMdxFrontmatter: Attacher<[RemarkMdxFrontmatterOptions?]> =
44
44
data = parse ( value ) ;
45
45
}
46
46
if ( data == null ) {
47
- return ;
47
+ continue ;
48
48
}
49
49
if ( ! name && typeof data !== 'object' ) {
50
50
throw new Error ( `Expected frontmatter data to be an object, got:\n${ value } ` ) ;
You can’t perform that action at this time.
0 commit comments