Skip to content

Releases: huacnlee/autocorrect

v2.0.0

04 Oct 02:58
Compare
Choose a tag to compare

New features

  • core: Add rules config, now you can configure rule in .autocorrectrc.

  • core: Improve Markdown parser to identify the indented style code block for fix .

  • core: Allows to use autocorrect-disable <rule> to disable some rules.

  • 重构 Format 拆分 Rule,每个 Rule 定义名称,Rule 支持通过配置来开关。

  • Rule 支持配置 severity,检查的时候根据 severity 决定 Lint 展示。

  • 允许采用 autocorrect-disable <rule> 注释来禁用某些规则。

Rules

rules:
  # Auto add spacing between CJK (Chinese, Japanese, Korean) and English words.
  # 0 - off, 1 - error, 2 - warning
  space-word: 1
  # Add space between some punctuations.
  space-punctuation: 1
  # Convert to fullwidth.
  fullwidth: 1
  # Convert to halfwidth.
  halfwidth: 1
  # To remove space near the fullwidth.
  no-space-fullwidth: 1
  # Spellcheck
  spellcheck: 2

Deprecated

  • Deprecated format_html method, use format_for instead.
  • Deprecated spellcheck.mode config, use rules.spellcheck instead.

Fix

  • core: Fix line number position when in inline scripts. #85
  • core: Fix markdown parse meta info issue #84

v1.11.0

28 Sep 08:53
a0e36bb
Compare
Choose a tag to compare
  • Now, spellcheck in lint will return warning, not error.
  • Improve lint diff stdout for highlight words like GitHub diff.
  • Improve lint exit code, if there just warning exit 0 (CI will pass).
  • Improve Lint check print for show up errors and warnings count.
  • Lint JSON format output add the severity field, 1 error, 2 warning.

SCR-20220928-nsk

v1.10.9

26 Sep 11:42
Compare
Choose a tag to compare
  • Fix latest version (v1.10.8) may lose HTML attribute value issue.
  • Fix #75 avoid change HTML tag attributes in Markdown.
  • Add test for avoid change link href for Markdown, AsciiDoc, HTML #75

v1.10.7

23 Sep 10:21
Compare
Choose a tag to compare
  • core: Fix #71 keep AutoCorrect disable state for inline scripts processing. @EXHades
  • core: Fix #73 Markdown meta info will lose chars issue. @zhangyafeikimi

v1.10.5

21 Sep 13:07
Compare
Choose a tag to compare
  • Improve performance for some complex file case.
  • core: Limit parse stack max depth for avoiding some complex parser will hangs indefinitely.
  • core: Improve Markdown parser for supports meta info.
  • core: Improve HTML parser details.
  • core: Fix Markdown parser may deadlock issue.
  • cli: Improve debug output.

v1.10.4

13 Sep 03:46
Compare
Choose a tag to compare

What's Changed

  • Fix #64 improve Markdown for supports use HTML comment syntax to enable/disable AutoCorrect. @zhangyafeikimi
  • Update README.md by @pzij in #65

New Contributors

  • @pzij made their first contribution in #65

Full Changelog: v1.10.2...v1.10.4

v1.10.1

15 Aug 12:27
Compare
Choose a tag to compare
  • fix: Avoid add space before @ (Some programming use this as variable prefix, e.g. Vue I18n link).

v1.10.0

02 Aug 06:34
Compare
Choose a tag to compare
  • Add C, C++ supports #62

AutoCorrect Desktop v0.1.3

18 Jun 14:58
Compare
Choose a tag to compare
Pre-release
tauri-v0.1.3

tauri: Fix lint.

AutoCorrect Desktop v0.1.2

18 Jun 13:42
Compare
Choose a tag to compare
Pre-release
tauri-v0.1.2

tauri: Update CI for avoid upload to Apple