All Projects → markdownlint → Markdownlint

markdownlint / Markdownlint

Licence: mit
Markdown lint tool

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Markdownlint

Remark Boilerplate
A boilerplate to create presentations using remark, Gulp, Stylus and more.
Stars: ✭ 41 (-96.03%)
Mutual labels:  markdown
Mdnote
📝 [website] A cloud notepad
Stars: ✭ 43 (-95.83%)
Mutual labels:  markdown
React Marker
🖍️ Highlight keywords and add colors to your text.
Stars: ✭ 45 (-95.64%)
Mutual labels:  markdown
Mdopen
View markdown files in the default browser
Stars: ✭ 42 (-95.93%)
Mutual labels:  markdown
Marked
Confluence macro plugin which renders remote Markdown.
Stars: ✭ 42 (-95.93%)
Mutual labels:  markdown
Remark Vdom
plugin to compile Markdown to Virtual DOM
Stars: ✭ 44 (-95.74%)
Mutual labels:  markdown
Markdown Latex
A markdown parser for converting markdown to LaTeX written in PHP.
Stars: ✭ 40 (-96.12%)
Mutual labels:  markdown
Myst Nb
Parse and execute ipynb files in Sphinx
Stars: ✭ 45 (-95.64%)
Mutual labels:  markdown
Pagic
A static site generator powered by Deno + React
Stars: ✭ 1,016 (-1.55%)
Mutual labels:  markdown
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-95.64%)
Mutual labels:  markdown
Metalsmith
An extremely simple, pluggable static site generator.
Stars: ✭ 7,692 (+645.35%)
Mutual labels:  markdown
Hastysite
A small but powerful static site generator
Stars: ✭ 42 (-95.93%)
Mutual labels:  markdown
Markdown.avalonia
render markdown with Avalonia UI
Stars: ✭ 45 (-95.64%)
Mutual labels:  markdown
Markdown2pdf
A simple library to convert markdown to pdf using Java
Stars: ✭ 41 (-96.03%)
Mutual labels:  markdown
Vietnamese Frontend Interview Questions
Tuyển tập các câu hỏi phỏng vấn cho vị trí lập trình Front-end
Stars: ✭ 45 (-95.64%)
Mutual labels:  markdown
Mkdocs With Pdf
Generate a single PDF file from MkDocs repository.
Stars: ✭ 39 (-96.22%)
Mutual labels:  markdown
Markdown It Incremental Dom
markdown-it renderer plugin by using Incremental DOM.
Stars: ✭ 44 (-95.74%)
Mutual labels:  markdown
Netlify Plugin Ghost Markdown
Returns Ghost content as markdown files for static site generators like Jekyll to consume.
Stars: ✭ 46 (-95.54%)
Mutual labels:  markdown
Remark Slate
Remark plugin to compile Markdown as a slate 0.50+ compatible object.
Stars: ✭ 46 (-95.54%)
Mutual labels:  markdown
Gatsby Embedder Excalidraw
🤴 Custom transformer to embed Excalidraw diagrams
Stars: ✭ 45 (-95.64%)
Mutual labels:  markdown

Markdown lint tool

Continuous Integration Gem Version

A tool to check markdown files and flag style issues.

Installation

Markdownlint is written in ruby and is distributed as a rubygem. As long as you have a relatively up to date ruby on your system, markdownlint will be simple to install and use. You have 2 options to install it:

To install from rubygems, run:

gem install mdl

To install the latest development version from github:

git clone https://github.com/markdownlint/markdownlint
cd markdownlint
rake install

Note that you will need rake (gem install rake) and bundler (gem install bundler) in order to build from source.

Usage

To have markdownlint check your markdown files, simply run mdl with the filenames as a parameter:

mdl README.md

Markdownlint can also take a directory, and it will scan all markdown files within the directory (and nested directories):

mdl docs/

If you don't specify a filename, markdownlint will use stdin:

cat foo.md | mdl

Markdownlint will output a list of issues it finds, and the line number where the issue is. See RULES.md for information on each issue, as well as how to correct it:

README.md:1: MD013 Line length
README.md:70: MD029 Ordered list item prefix
README.md:71: MD029 Ordered list item prefix
README.md:72: MD029 Ordered list item prefix
README.md:73: MD029 Ordered list item prefix

Markdownlint has many more options you can pass on the command line, run mdl --help to see what they are, or see the documentation on configuring markdownlint.

Styles

Not everyone writes markdown in the same way, and there are multiple flavors and styles, each of which are valid. While markdownlint's default settings will result in markdown files that reflect the author's preferred markdown authoring preferences, your project may have different guidelines.

It's not markdownlint's intention to dictate any one specific style, and in order to support these differing styles and/or preferences, markdownlint supports what are called 'style files'. A style file is a file describing which rules markdownlint should enable, and also what settings to apply to individual rules. For example, rule MD013 checks for long lines, and by default will report an issue for any line longer than 80 characters. If your project has a different maximum line length limit, or if you don't want to enforce a line limit at all, then this can be configured in a style file.

For more information on creating style files, see the creating styles document.

Related projects

Contributing

See CONTRIBUTING.md for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].