Skip to content

Commit 0e6307d

Browse files
committed
chore: add prh configuration
1 parent 804c839 commit 0e6307d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.textlintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,14 @@ module.exports = {
1111
// 階層構造を表現する記号としての>の使用例があるため
1212
"4.3.7.山かっこ<>": false,
1313
},
14+
prh: {
15+
rulePaths: ["./prh.yaml"],
16+
checkLink: false,
17+
checkBlockQuote: false,
18+
checkEmphasis: true,
19+
checkHeader: true,
20+
checkParagraph: true,
21+
checkCodeComment: [],
22+
},
1423
},
1524
};

prh.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 1
2+
3+
rules:
4+
- expected: Typst
5+
pattern: /(?<![-#])\b[Tt][Yy][Pp][Ss][Tt]\b(?!-)/
6+
specs:
7+
- from: typst
8+
to: Typst
9+
- from: typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.
10+
to: Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.
11+
- from: typstは、学術用途のために新たに生まれたマークアップベースの組版システムです。
12+
to: Typstは、学術用途のために新たに生まれたマークアップベースの組版システムです。
13+
- from: ttypstt
14+
to: ttypstt
15+
- from: "{#typst}"
16+
to: "{#typst}"
17+
- from: "{#when-typst}"
18+
to: "{#when-typst}"
19+
- from: typst-jp
20+
to: typst-jp

0 commit comments

Comments
 (0)