Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Tool for converting HTML to Markdown, like html2markdown.
online converter: http://island205.github.io/h2m/
$npm install h2m
h2m(html[, options])
var h2m = require('h2m')
var md = h2m('<h1>Hello World</h1>')
// md = '# Hello World'
converter
: the converter you can choose. now support CommonMark
(default) and MarkdownExtra
overides
: custom converter behavior:h2m('<a href="http://island205.github.io/h2m/">h2m</a>', {
overides: {
a: function(node) {
/**
node is an object as the a tag:
{
name: "a",
attrs: {
href: 'http://island205.github.io/h2m/'
},
md: 'h2m'
}
*/
return `[This is an link element](${node.attrs.href})`
}
}
}
// output [This is an link element](http://island205.github.io/h2m/)
$ npm install h2m -g
$h2m -h
Usage: h2m [options] <file>
Options:
-h, --help output usage information
-V, --version output the version number
Convert a local file:
$ h2m index.html
converting HTML to Markdown
made by [@island205](https://github.com/island205)
Can't be convert? welcome to submit an [issue](https://github.com/island205/h2m/issues/new).
Convert an online url:
$ h2m https://baidu.com
Save result:
$ h2m https://google.com > google.md
h2m
supports standard Markdown sytax: CommonMark now and Markdown Extra.
PRs are welcome to implement other extend Markdown language, like Markdown Extra, GFM and so on.
FAQs
Transform HTML to markdown base on posthtml.
The npm package h2m receives a total of 314 weekly downloads. As such, h2m popularity was classified as not popular.
We found that h2m demonstrated a not healthy version release cadence and project activity because the last version was released 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.