Typefixer
Utility for transforming your Markdown files to use typographically correct punctuation. Basically a CLI wrapper around wooorm/retext and wooorm/retext-smartypants.
Install
$ npm install -g typefixer
Usage
$ cat foo.md
Lorem "ipsum" dolor 'sit' amet...
$ typefixer foo.md
Lorem “ipsum” dolor ‘sit’ amet…
If you want to save the transformation to a file use the redirection operator (>
), e.g.
$ typefixer foo.md > fixed.md
Inspiration
http://smartquotesforsmartpeople.com
License
MIT © Jonathan Svenheden