-
Notifications
You must be signed in to change notification settings - Fork 1
/
.remarkrc.js
39 lines (37 loc) · 1.03 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
34
35
36
37
38
39
const fs = require('fs');
const path = require('path');
exports.settings = {};
exports.plugins = [
require('remark-frontmatter'),
[
require('remark-retext'),
require('unified')().use({
plugins: [
require('retext-english'),
require('retext-syntax-urls'),
[
require('retext-spell'),
{
ignoreLiteral: true,
dictionary: require('dictionary-en-us'),
personal: fs.readFileSync(
path.join(__dirname, '.dictionary'),
'utf8'
),
},
],
[require('retext-sentence-spacing'), { preferred: 1 }],
require('retext-repeated-words'),
require('retext-usage'),
require('retext-indefinite-article'),
require('retext-redundant-acronyms'),
[
require('retext-contractions'),
{ straight: true, allowLiteral: true },
],
require('retext-diacritics'),
[require('retext-quotes'), { preferred: 'straight' }],
],
}),
],
];