I am a project maintainer. I want to enforce common syntax rules for writers (e.g. consistent choice of header syntax, always wrap at 72 characters) so that our text files are not just valid CommonMark, but also have a consistent visual style for human readers and plaintext renderers.
I don’t mind using someone else’s style guide. (Although word-wrap / right-margin might need to be something I define.)
My understanding is that the CommonMark project is currently defining a specification and reference CommonMark-to-HTML renderers. Do any of the current tools include a linter (reports invalid markup) or ideally a tidier (fixes invalid markup, where possible)?
So far the only tool I’ve found in any language is https://www.npmjs.com/package/tidy-markdown which doesn’t guarantee CommonMark validity. It follows this styleguide: https://github.com/slang800/markdown-styleguide (includes table markup).