forked from wmjordan/PDFPatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
很多科技媒体会在写作时都会遵循一个排版规则,即在中英文之间保留一个空格。 保留一个空格从一定程度上提升了排版的美观度,虽然先有的部分内容已经添加 了一些空格,但仍然有部分漏掉。现使用 textlint 来批量添加空格。 操作步骤: npm install textlint npm install textlint-rule-ja-space-between-half-and-full-width --global textlint --init 将 .textlintrc 修改为如下内容: { "filters": {}, "rules": { "ja-space-between-half-and-full-width": { "space": "always" } } } textlint *.md (为了方便后续重复 textlint 命令插入空格,将生成的 .textlintrc 配置文件加入版本库) 参考资料:https://sspai.com/post/55006
- Loading branch information
Showing
3 changed files
with
484 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"filters": {}, | ||
"rules": { | ||
"ja-space-between-half-and-full-width": { | ||
"space": "always" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.