An open API service indexing awesome lists of open source software.

https://github.com/hukkin/mdformat-rustfmt

Mdformat plugin to rustfmt Rust code blocks
https://github.com/hukkin/mdformat-rustfmt

markdown mdformat rustfmt

Last synced: 4 months ago
JSON representation

Mdformat plugin to rustfmt Rust code blocks

Awesome Lists containing this project

README

          

[![Build Status](https://github.com/hukkinj1/mdformat-rustfmt/workflows/Tests/badge.svg?branch=master)]()
[![PyPI version]()]()

# mdformat-rustfmt
> Mdformat plugin to rustfmt Rust code blocks

## Description
mdformat-rustfmt is an [mdformat](https://github.com/executablebooks/mdformat) plugin
that makes mdformat format Rust code blocks with [rustfmt](https://github.com/rust-lang/rustfmt).
The plugin invokes rustfmt in a subprocess so having it installed is a requirement.

## Installing
1. [Install rustfmt](https://github.com/rust-lang/rustfmt#quick-start)
1. Install mdformat-rustfmt
```bash
pip install mdformat-rustfmt
```

## Usage
```bash
mdformat YOUR_MARKDOWN_FILE.md
```