Markdown It Prettier
Description
A markdown-it plugin to format code blocks in your markdown code.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
markdown-it-prettier
[](https://npmjs.com/package/markdown-it-prettier) [](https://npmjs.com/package/markdown-it-prettier) [](https://circleci.com/gh/egoist/markdown-it-prettier/tree/master) [](https://github.com/egoist/donate)
Install
yarn add prettier markdown-it-prettier
Usage
const md = require('markdown-it')()
const prettier = require('markdown-it-prettier')
const options = { singleQuote: true }
md.use(prettier, options)
In:
```js
hello ( "world"
)
class Foo{
log() {return "42"}
}
```
Out:
hello('world');
class Foo {
log() {
return '42';
}
}
```
It could format all kinds of code that [Prettier](https://github.com/prettier/prettier#prettier) could format.
Options
[Prettier options](https://github.com/prettier/prettier#options).
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
**markdown-it-prettier** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/markdown-it-prettier/contributors)).
[egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)
Related Skills
Doc Co-authoring
Guide users through structured workflow for co-authoring documentation
Documentation Docx
Create, edit, and analyze Word documents with tracked changes, comments, and formatting
Documentation Extract text, create PDFs, merge/split documents, and handle forms
Documentation Pptx
Create, edit, and analyze PowerPoint presentations with layouts and templates
Documentation Xlsx
Create, edit, and analyze Excel spreadsheets with formulas, formatting, and visualization
Documentation mcp-server-fetch
Fetch and convert web pages to markdown.
Documentation