markdownlint running in a Docker container.
Copy code below to your ~/.bashrc
alias markdownlint='docker run --rm -it -v "$(pwd):/app" mmphego/markdownlint'
markdownlint markdown-file-with-errors.md
# or
docker run --rm -it -v "$(pwd):/app" mmphego/markdownlint markdown-file-with-errors.md
See this project on the Docker Hub.
Feel free to fork it or send me PR to improve it.