Skip to content

Prettify markdown files

Description

Prettier standardizes the representation and formatting of Markdown. More information is available at https://prettier.io/. Note, these instructions are for a Mac.

Install npm

If you do not have npm installed, this can be installed using homebrew (if you have homebrew installed).

brew install node

Install Prettier locally

  1. Run npm install --save-dev --save-exact prettier

Prettify your files

  1. Create a new branch
  2. Navigate to your root directory containing obook
  3. Run npx prettier --write .
  4. Commit to your branch and create a pull request