Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .textlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ module.exports = {
plugins: ["html"],
filters: {
comments: true,
allowlist: {
allow: ["/<(code|pre)[^>]*>[\\s\\S]*?</(code|pre)>/"],
},
},
rules: {
"preset-jtf-style": {
// 階層構造を表現する記号としての>の使用例があるため
"4.3.7.山かっこ<>": false,
},
prh: {
rulePaths: ["./prh.yaml"],
checkLink: false,
checkBlockQuote: false,
checkEmphasis: true,
checkHeader: true,
checkParagraph: true,
checkCodeComment: [],
},
},
};
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"devDependencies": {
"@types/bun": "latest",
"textlint": "^15.2.2",
"textlint-filter-rule-allowlist": "^4.0.0",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-plugin-html": "^1.0.1",
"textlint-rule-preset-jtf-style": "^3.0.2"
"textlint-rule-preset-jtf-style": "^3.0.2",
"textlint-rule-prh": "^6.1.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down
20 changes: 20 additions & 0 deletions prh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 1

rules:
- expected: Typst
pattern: /(?<![-#])\b[Tt][Yy][Pp][Ss][Tt]\b(?!-)/
specs:
- from: typst
to: Typst
- 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.
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.
- from: typstは、学術用途のために新たに生まれたマークアップベースの組版システムです。
to: Typstは、学術用途のために新たに生まれたマークアップベースの組版システムです。
- from: ttypstt
to: ttypstt
- from: "{#typst}"
to: "{#typst}"
- from: "{#when-typst}"
to: "{#when-typst}"
- from: typst-jp
to: typst-jp