markdownlint
markdownlint copied to clipboard
HTML checking in MD docs
This is an enhancement request.
It would be nice to have basic html syntax checking. It would be nice if this tool can also check links (internal or external). However, internal links is more important for me.
HTML in Markdown is somewhat discouraged, as by MD033: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033
What did you have in mind?
Regarding link checking, that is probably covered by some combination of #40, #68, #121, #144, #213.
According to that rules, we can disable it or allow specific elements. MD is great but it doesn't cover some needed complexities inside of tables or in creating anchors. Things that are needed when you convert the MD to a full HTML and include things like table of contents, etc... I found using tags like <p>, <br> and <a> in side of MD tables greatly help make the HTML readable. In very rare cases we need to resort to
Makes sense, thanks!
You'd better enhance webhint or some other HTML linter, or use Markdown preprocessor such as mdBook that allows you to include other files as fragments, and split out the HTML source code.