-
-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy path.remarkrc.js
29 lines (28 loc) · 1.01 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
import remarkCommentConfig from 'remark-comment-config'
import remarkGfm from 'remark-gfm'
import remarkGithub from 'remark-github'
import remarkPresetLintConsistent from 'remark-preset-lint-consistent'
import remarkPresetLintRecommended from 'remark-preset-lint-recommended'
import remarkToc from 'remark-toc'
import remarkValidateLinks from 'remark-validate-links'
import remarkLintListItemIndent from 'remark-lint-list-item-indent'
import remarkLintFencedCodeFlag, {
checkGithubLinguistFlag
} from 'remark-lint-fenced-code-flag'
import listOfPlugins from './script/plugin/list-of-plugins.js'
import listOfPresets from './script/plugin/list-of-presets.js'
export default {
plugins: [
remarkCommentConfig,
[remarkGfm, {tablePipeAlign: false}],
remarkGithub,
remarkPresetLintConsistent,
remarkPresetLintRecommended,
[remarkLintFencedCodeFlag, checkGithubLinguistFlag],
[remarkLintListItemIndent, 'one'],
[remarkToc, {maxDepth: 3}],
remarkValidateLinks,
listOfPlugins,
listOfPresets
]
}