A Gatsby remark plugin that formats code blocks in Markdown files using Prettier. Version 1.0.0 is stable but relies on older Gatsby (^1.9.273) and Prettier (^1.13.7) peer dependencies. It integrates with gatsby-transformer-remark and can be configured to use a local .prettierrc file or override options. Unlike manual formatting, it automates code block styling within Gatsby's build pipeline. No longer actively developed.
npm install gatsby-remark-prettierVerified import paths — ran on the pinned version, not inferred.
Configures gatsby-remark-prettier to format code blocks, using .prettierrc and overriding some options, with a highlight plugin after it.
Check peer dependency versions; if using newer Gatsby, look for alternatives or fork.
Place prettier plugin before highlight plugins in the plugins array.
Set `usePrettierrc: false` and specify all options in `prettierOptions` if issues arise.
npm install gatsby-remark-prettier
Move it to the plugins array inside gatsby-transformer-remark options.
npm install prettier@^1.13.7