We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d97da9 commit 71b2895Copy full SHA for 71b2895
src/remark-mdx-frontmatter.ts
@@ -37,7 +37,7 @@ const remarkMdxFrontmatter: Plugin<[RemarkMdxFrontmatterOptions?], Root> = ({
37
parsers
38
} = {}) => {
39
if (!isIdentifierName(name)) {
40
- throw new Error(`Name this should be a valid identifier, got: ${JSON.stringify(name)}`)
+ throw new Error(`Name should be a valid identifier, got: ${JSON.stringify(name)}`)
41
}
42
43
const allParsers: FrontmatterParsers = {
src/test.ts
@@ -61,6 +61,6 @@ test('invalid name', () => {
61
remarkPlugins: [remarkFrontmatter, [remarkMdxFrontmatter, { name: 'Not valid' }]],
62
jsx: true
63
}),
64
- 'If name is specified, this should be a valid identifier name, got: "Not valid"'
+ /Name should be a valid identifier, got: "Not valid"/
65
)
66
})
0 commit comments