GitHunt
RP

rposborne/prettier-markdown-codeblocks

Autoformat markdown code blocks.

Prettier Markdown Codeblocks

Build Status
Version
Downloads

Format codeblocks in markdown files using prettier and rubocop.

Autocorrecting markdown codeblocks

Supports

We aslo support full customization using .eslintrc.js file and respctive .rubocop.yml configuration files to tweak the formatted style to your projects requirements.

Wishlist

  • Java (in progress)
  • C#
  • Python

Usage

Directory

prettier-markdown-codeblocks <directory>

File

prettier-markdown-codeblocks <file.md>

Stdin

cat <file.md> | prettier-markdown-codeblocks | tee <file.md>

Contributing

๐Ÿ‘๐ŸŽ‰ First off, thanks for taking the time to contribute! ๐ŸŽ‰๐Ÿ‘

Bug reports and pull requests are welcome on GitHub at https://github.com/rposborne/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.

License

The package is available as open source under the terms of the MIT License.

Languages

JavaScript100.0%

Contributors

Created July 3, 2017
Updated December 4, 2024
rposborne/prettier-markdown-codeblocks | GitHunt