markdownfmt

command module
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 12 Imported by: 0

README

markdownfmt

Fork of github.com/shurcooL/markdownfmt that targets following additions:

Build Status GoDoc

Like gofmt, but for Markdown.

Markdown Format Demo

Note that markdownfmt works with pure Markdown files. If you want to use it with Markdown files that have front matter, consider one of alternatives that supports that.

Installation

go get -u github.com/Kunde21/markdownfmt

Add $GOPATH/bin to your $PATH or copy $GOPATH/bin/markdownfmt to your $PATH.

Usage

usage: markdownfmt [flags] [path ...]
  -d=false: display diffs instead of rewriting files
  -l=false: list files whose formatting differs from markdownfmt's
  -w=false: write result to (source) file instead of stdout

Editor Plugins

Alternatives

  • mdfmt - Fork of markdownfmt that adds front matter support.
  • tidy-markdown - Project with similar goals, but written in JS and based on a slightly different styleguide.

License

Documentation

Overview

markdownfmt formats Markdown.

Directories

Path Synopsis
Package renderer renders the given AST to certain formats.
Package renderer renders the given AST to certain formats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL