Pass code fenced markdown to prettier for formatting.
npm install prettier-markdown-codeblocks


Format codeblocks in markdown files using prettier and rubocop.
!Autocorrecting markdown codeblocks
Supports
- JavaScript, including ES2017
- JSX
- Flow
- TypeScript
- CSS, LESS, and SCSS
- JSON
- GraphQL
- Ruby (via rubocop gem install rubocop)
Wishlist
- Java
- C#
- Python
Directory
``sh`
prettier-markdown-codeblocks
File
`sh`
prettier-markdown-codeblocks
Stdin
`sh``
cat
šš First off, thanks for taking the time to contribute! šš
Bug reports and pull requests are welcome on GitHub at https://github.com/TIYDC/prettier-markdown-codeblocks. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The package is available as open source under the terms of the MIT License.