{"repo":"hougesen/mdsf","free":true,"listed":false,"github":"https://github.com/hougesen/mdsf","clone":"git clone https://github.com/hougesen/mdsf.git","description":"Format markdown code blocks using your favorite tools","language":"Rust","stars":110,"topics":["formatter","markdown","elixir","gleam","rust","zig","python","codeblocks","cli","codeformatter"],"license":"MIT","category":"cli-tools","readme_excerpt":"mdsf Format, and lint, markdown code snippets using your favorite tools. Table of contents - Table of contents - Installation - Linux & MacOS - Windows - Cargo - npm/npx - Homebrew - Conda - Usage - Formatting code - Caching formatting results - Removing old caches - Verifying code - GitHub Action - Visual Studio Code - Vim / NeoVim - conform.nvim - treefmt - pre-commit - Configuration - Language aliases - Newlines - Custom tools and commands - Tools - Commands - Shell completions - Bash - Zsh - Fish - PowerShell - Elvish - Nushell - Rust MSRV - Acknowledgement - Alternatives to mdsf Installation The latest version of mdsf can be downloaded directly from github.com/hougesen/mdsf/releases. Linux & MacOS Windows Cargo Install using the published crate: or directly from source: If you do not have Cargo installed, you need to install it first. npm/npx You can install mdsf using npm: or run it directly using npx: Homebrew Conda An unofficial (and unsupported) Conda package can be found at https://anaconda.org/conda-forge/mdsf. Usage Formatting code The format command, as the name implies, is used to format documents. Caching formatting results To speed formatting caching can be enabled by supplying the format command with the --cache argument. Removing old caches Old caches can be removed by running the mdsf cache-prune command. Verifying code You can verify that the document is formatted using the mdsf verify command. GitHub Action There are a lot of different ways to run mdsf us","default_branch":null,"files":null,"tree":[],"storefront":"/r/hougesen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hougesen/mdsf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}