-
Notifications
You must be signed in to change notification settings - Fork 17
/
.remarkrc.js
34 lines (30 loc) · 1.21 KB
/
.remarkrc.js
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
// replaces remark-preset-davidtheclark
const remarkFrontmatter =require('remark-frontmatter')
const remarkValidateLinks =require('remark-validate-links')
const remarkToc =require('remark-toc')
const remarkLintBlockquoteIndentation =require('remark-lint-blockquote-indentation')
const remarkLintFileExtension =require('remark-lint-file-extension')
const remarkLintFinalDefinition =require('remark-lint-final-definition')
const remarkLintNoDuplicateDefinitions =require('remark-lint-no-duplicate-definitions')
const remarkLintNoMultipleToplevelHeadings =require('remark-lint-no-multiple-toplevel-headings')
const remarkLintNoTabs =require('remark-lint-no-tabs')
const remarkLintNoUndefinedReferences =require('remark-lint-no-undefined-references')
exports.settings = {
listItemIndent: 1,
emphasis: '*',
strong: '*',
bullet: '-',
fences: true
};
exports.plugins = [
remarkFrontmatter,
remarkValidateLinks,
[remarkToc, { maxDepth: 3, tight: true }],
[remarkLintBlockquoteIndentation, 2],
[remarkLintFileExtension, 'md'],
remarkLintFinalDefinition,
remarkLintNoDuplicateDefinitions,
remarkLintNoMultipleToplevelHeadings,
remarkLintNoTabs,
remarkLintNoUndefinedReferences,
];