#punctuation #normalize #lint

bin+lib normalize-punctuation

Normalize punctuation in Markdown files

2 unstable releases

Uses new Rust 2024

new 0.2.0 Apr 27, 2025
0.1.0 Apr 25, 2025

#1315 in Command line utilities

Download history 74/week @ 2025-04-20

75 downloads per month

MIT/Apache

13KB
206 lines

Normalize Punctuation

Normalize punctuation in Markdown files.

Current replacements

  • '
  • '
  • "
  • "
  • ˋ`
  • '
  • "
  • ...
  • NBSP
  • « "
  • «"
  • »"
  • »"
  • -
  • -
  • -
  • -

To keep NBSPs, use explicit   instead.

Installation

To run normalize-punctuation 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