Utility for transforming your Markdown files to use typographically correct punctuation. Basically a CLI wrapper around wooorm/retext and wooorm/retext-smartypants.
$ npm install -g typefixer
$ 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
http://smartquotesforsmartpeople.com
MIT © Jonathan Svenheden