Releases: huacnlee/autocorrect
Releases · huacnlee/autocorrect
v2.0.0
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, userules.spellcheck
instead.
Fix
v1.11.0
- 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.
v1.10.9
v1.10.7
- 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
- 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
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
- fix: Avoid add space before @ (Some programming use this as variable prefix, e.g. Vue I18n link).
v1.10.0
AutoCorrect Desktop v0.1.3
tauri-v0.1.3 tauri: Fix lint.
AutoCorrect Desktop v0.1.2
tauri-v0.1.2 tauri: Update CI for avoid upload to Apple