
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
html-validate-markdown
Advanced tools
Transform Html blocks in Markdown files for use with html-validate.
Transform Html blocks in Markdown files for use with html-validate.
<div>
This is a html block. View Source to see me. Remember to always add ```html
before your code in order to transform it.
</div>
npm install --save-dev html-validate-markdown
In .htmlvalidate.json:
{
"transform": {
"^.*\\.md$": "html-validate-markdown"
}
}
If you wish to ignore a code fence from validation use the novalidate tag:
```html novalidate
<p>This will not be validated</i>
```
By default only html code fences are validated but additional languages can be added by chaining additional transformers:
In .htmlvalidate.json:
{
"transform": {
"^.*\\.md$": "html-validate-markdown"
"^.*\\.md:vue$": "html-validate-vue:sfc"
}
}
In this case any code fence with the language vue will be transformed with html-validate-vue before validation.
If needed, html can be configured the same way using a regex similar to ^.*\\.md:html.
$ npm install
$ npm run build
$ npm test
Copied from https://gitlab.com/html-validate/html-validate-vue
FAQs
Transform Html blocks in Markdown files for use with html-validate.
The npm package html-validate-markdown receives a total of 6,671 weekly downloads. As such, html-validate-markdown popularity was classified as popular.
We found that html-validate-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.