-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.remarkrc.mjs
38 lines (33 loc) · 1.28 KB
/
.remarkrc.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import remarkFrontmatter from 'remark-frontmatter';
import remarkLintFrontmatterSchema from 'remark-lint-frontmatter-schema';
/* —————————————————————————————————————————————————————————————————————————— */
const remarkConfig = {
plugins: [
remarkFrontmatter,
/* v————— Use it without settings, with local '$schema' associations only */
// rlFmSchema
/* v————— Or with global schemas associations */
[
remarkLintFrontmatterSchema,
{
schemas: {
/* One schema for many files */
'./content/creative-work.schema.yaml': [
'./content/creative-work/the-shipwreck__global-broken.md',
/* Support glob patterns ———v */
// './content/creative-work/*.md',
// …
// `./` prefix is optional
// 'content/creative-work/foobiz.md',
// './content/elsewhere/does-not-exist-anymore.md',
],
// './content/ghost.schema.yaml': [
// './content/casper.md',
// './content/ether.md',
// ],
},
},
],
],
};
export default remarkConfig;