This package contains settings for remark. In OCEAN, we use these settings to ensure good formatting and readability on markdown files.
You can use the instructions in this repository to run automatic formatting on any markdown file, across other repositories using markdown.
Clone this repository. In your console, run:
npm installTo check your installation, this repository contains a test.md file so you can run the following:
./node_modules/.bin/remark test.mdA set of warnings should appear when running remark on the test.md file.
To show potential differences:
./node_modules/.bin/remark path/to/file.mdTo rewrite the file automatically:
./node_modules/.bin/remark /path/to/file.md -o