Skip to content

Mdformat plugin to rustfmt Rust code blocks

License

Notifications You must be signed in to change notification settings

hukkin/mdformat-rustfmt

Repository files navigation

Build Status PyPI version

mdformat-rustfmt

Mdformat plugin to rustfmt Rust code blocks

Description

mdformat-rustfmt is an mdformat plugin that makes mdformat format Rust code blocks with rustfmt. The plugin invokes rustfmt in a subprocess so having it installed is a requirement.

Installing

  1. Install rustfmt
  2. Install mdformat-rustfmt
    pip install mdformat-rustfmt

Usage

mdformat YOUR_MARKDOWN_FILE.md