Skip to content
/ mdci Public

πŸ› βœ” [Pre-commit Git hook] Continuous integration for Markdown files.

Notifications You must be signed in to change notification settings

stvhwrd/mdci

Folders and files

NameName
Last commit message
Last commit date
Nov 15, 2022
Oct 16, 2018
Jan 25, 2018
Jan 25, 2018
Jan 25, 2018
Jan 25, 2018
Oct 16, 2018
Jan 26, 2018
Oct 25, 2024
Mar 11, 2023
Jan 25, 2018

Repository files navigation

mdci Build Status

Continuous integration for Markdown files.

Note: This project has not been tested extensively, and may give false positives and/or false negatives if advanced Markdown (like MultiMarkdown) is used.

Dependencies

Installation

  1. Clone the project: git clone https://github.com/stvhwrd/mdci.git

  2. Change directory: cd mdci

  3. Install NPM packages: npm install

  4. Run tests on .md files in the current directory, by running any of the commands below.

Commands

Sensitivity check:

  • make offensive-wording

Check for words and phrases from a list of common inequalities and exclusivities and, separately, a list of profanities (NSFW).

Interactive spellcheck:

Check spelling and ask user how to handle each perceived spelling error, allowing the user to interactively build their dictionary (.spelling) file on a per-word basis.

  • make spellcheck-interactive

Auto spellcheck:

Check spelling and fail on any perceived spelling error that is not in the custom dictionary (.spelling).

  • make spellcheck-auto

Linter:

Check syntax and structure of Markdown, fail on any errors.

  • make lint-markdown

Local runner:

Run sensitivity check and linter as normal, but run spellcheck interactively. This test sequence is suitable to run before committing Markdown files to version control.

  • make test-pre-commit

Continuous integration runner:

Run all tests in headless (non-interactive) mode.

  • make test

TODO

See GitHub Issues.

Credits

Big thanks to @kvz for their blog post which is the basis of - and inspiration for - this project.

About

πŸ› βœ” [Pre-commit Git hook] Continuous integration for Markdown files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published