Giter VIP home page Giter VIP logo

mdformat-nix-alejandra's Introduction

mdformat-nix-alejandra

Mdformat plugin to format Nix code blocks with alejandra

Description

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

Getting started

To make the most of this repository, you should have the following installed:

After cloning this repository and entering inside, run direnv allow when prompted, and you will be met with following prompt.

๐Ÿ”จ Welcome to mdformat-nix-alejandra

[Tools]

  check  - Checks the source tree
  fmt    - Format the source tree

[general commands]

  menu   - prints this menu

[python]

  pytest - Invoke pytest directly

It will also load required dependencies like python, poetry, pytest and alejandra to quickly develop.

Installing (Python)

  1. Install alejandra
  2. Install mdformat-nix-alejandra
    pip install mdformat-nix-alejandra

Usage

mdformat YOUR_MARKDOWN_FILE.md

License

This project is licensed under the MIT license. See the LICENSE file for more details.

Support

If you encounter any issues or have any questions, please open an issue on the GitHub repository.

Acknowledgements

This code is practically based on mdformat-rustfmt plugin written by hukkin, so kudos to him.

mdformat-nix-alejandra's People

Contributors

aldoborrero avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.