Sorry not clear on first try. The great idea is your linter.
Oh, it is not mine, I am just a user - I love linters and I happen to be writing a lot of Markdown, so I currently I am in love with Markdownlint :-)
Using primarily the Node implementation, have played around with the Ruby implementation. Btw. the Ruby implementation should perhaps be what you should look at for possible integration with your project: github.com/markdownlint
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.