1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 25, 2025 |
---|
#1445 in Command line utilities
11KB
205 lines
Normalize Punctuation
Normalize punctuation in Markdown files.
Current replacements
‘
→'
’
→'
“
→"
”
→"
‚
→'
„
→"
…
→...
NBSP
→«
→"
«
→"
»
→"
»
→"
‐
→-
﹘
→-
−
→-
–
→—
To keep NBSP
s, use explicit
instead.
Installation
As a pre-commit
hook (recommended)
To run healthcheck
as a pre-commit
hook, add the following to your
.pre-commit-config.yaml
file:
- repo: https://github.com/qrichert/normalize-punctuation
rev: <tag of latest version>
hooks:
- id: normalize-punctuation
As a standalone executable
cargo install --locked --git https://github.com/qrichert/normalize-punctuation.git
Use the same command to update normalize-punctuation
.
Dependencies
~4–12MB
~123K SLoC