markdown-it-prettier
Install
yarn add prettier markdown-it-prettier
Usage
const md = const prettier = const options = singleQuote: true md
In:
```js {return "42"}```
Out:
hello('world'); class Foo { log() { return '42'; }}```
It could format all kinds of code that Prettier could format.
Options
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
markdown-it-prettier © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @_egoistlily