Huacnlee Autocorrect Versions Save

A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean).

v2.9.1

1 week ago

What's Changed

  • Remove unused dependencies, and improve to avoid str clone (#185)

  • Add --quiet argument for cli. (#188)

    • Improved the cli print details, add color to total duration.
    • Improved progress dot print, avoid immediate print for improved performance.
  • Add shell (.sh) script support. (#189)

  • Fix space-dash rule can't disable bug. (#190)

    In the before versions, - is always will added spaces by other rules. This version changed the space-dash rule default to enable, this will keep the compatibility with before behavior. Now, we can use space-dash: 0 to disable the space-dash rule.

v2.9.0

5 months ago

What's Changed

  • Add space-dash rule to add space between -, default: off.

    - 你好-世界
    + 你好 - 世界
    
  • Add space-backticks rule, default: on

    - 演示`code`代码
    + 演示 `code` 代码
    
  • Add Aho-Corasick algorithm for spellcheck backend to match keywords. (#171)

  • Improve format and lint method for performance up ~20%.

v2.8.5

8 months ago
  • Add to support Zig language.
  • Fix #174 autocorrect disable in LaTeX.
  • Fix 中文A/B中文 case not fix issue.
  • Fix 300+单词,A+评分,C++中文 case not fix issue.
  • Improve is_match_path for ignore match at latest 2 chars.

v2.8.4

9 months ago

What's News

  • Fix rdjson for one issue with one diagnostic, and fix column with bytes length.
  • Fix rdjson output with correct line, column on diagnostic node.

v2.8.2

9 months ago
  • node: Fix arguments get on linux musl system in autocorrect-node.

v2.8.1

9 months ago
  • node: Release linux-x64-musl for autocorrect-node.

v2.8.0

9 months ago

What's Changed

Full Changelog: https://github.com/huacnlee/autocorrect/compare/v2.7.1...v2.8.0

v2.7.2

9 months ago
  • Fix CLI to convert absolute file path into relative for match ignore rules.
  • node: Fix autocorrect init command for node.
  • node: Remove autocorrect update command from autocorrect-node.

v2.7.0

9 months ago

What's New

This version just release autocorrect-node and @huacnlee/autocorrect NPMs.

  • node: Add CLI command support for autocorrect-node, now we can just use it without install autocorrect bin. See doc
  • wasm: Fix WebAssembly build to support Safari in iOS 14 and lower versions.

Use AutoCorrect in Npm

AutoCorrect has been published in NPM with CLI command support. If you want to use it in Frontend or Node.js project, you can just install autocorrect-node package for without install AutoCorrect bin.

cd your-project
yarn add autocorrect-node

Now you can run yarn autocorrect command in your project. This command same as the autocorrect command.

$ yarn autocorrect -h

You can run autocorrect --lint to check:

$ yarn autocorrect --lint ./

v2.6.2

1 year ago

What's Changed

Update a lot of fix for Markdown:

  • Fix markdown to support parse [foo] as link text. #141
  • Improve Markdown parser for soft wrap to avoid some mistakes. #138
  • Fix Markdown for support newline in link and mark [text\nfoo](), **Foo\nBar**.
  • Fix HTML parse in Markdown.
  • Fix Markdown for support mark in link text, e.g.: [`Hello`](/hello), [**Hello**](/hello).

Other changes

New Contributors

Full Changelog: https://github.com/huacnlee/autocorrect/compare/v2.6.1...v2.6.2