Skip to content

Commit 4ccb234

Browse files
committed
Change frontmatter fixture to directive
Frontmatter is supported by default now. The goal of that fixture is to troubleshoot issues with a non-default plugin array.
1 parent f55d647 commit 4ccb234

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

fixtures/directive/directive.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Without `remark-directive` :this{#directive} would cause a parsing error,
2+
because anything between curly braces (e.g. {props.value}) would be parsed using acorn.

fixtures/frontmatter/tsconfig.json renamed to fixtures/directive/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"strict": true
77
},
88
"mdx": {
9-
"plugins": ["remark-frontmatter"]
9+
"plugins": ["remark-directive"]
1010
}
1111
}

fixtures/fixtures.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"folders": [
1515
{"path": "debug"},
1616
{"path": "demo"},
17-
{"path": "frontmatter"},
17+
{"path": "directive"},
1818
{"path": "no-tsconfig"},
1919
{"path": "node16"},
2020
{"path": "provide"}

fixtures/frontmatter/frontmatter.mdx

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"react": "^19.0.0",
2323
"react-dom": "^19.0.0",
2424
"remark-cli": "^12.0.0",
25+
"remark-directive": "^4.0.0",
2526
"remark-frontmatter": "^5.0.0",
2627
"remark-preset-wooorm": "^11.0.0",
2728
"typescript": "^5.0.0",

0 commit comments

Comments
 (0)