v2.1.0
Documentation v2.1.0: https://raw.githack.com/jaywcjlove/html-to-markdown-cli/660d60a/index.html
Comparing Changes: v2.0.1...v2.1.0
- π’ ci: update workflows config. 439e38c
- π feat: Support getting input from STDIN and outputting to STDOUT (useful for piping) (#19) 42573ce @jessp01
- π clean: format code. #19 7f58210
- π feat: the cli supports plugin config. 973fcb4
- π doc: update document. 2170b4a
echo "<h1>hello world</h1>"| html-to-markdown - --stdout
Support Config
In the project's root directory, add a .htm2mdrc.js
file with the following configuration to enable the rehype and remark plugins.
/**
* @typedef {import("@wcj/html-to-markdown").Options} Options
* @type {Options}
**/
export default {
rehypeParseOption: {},
rehypePlugins: [],
remarkPlugins: [],
};
The configuration is supported by auto-config-loader and it supports configurations in formats of .htm2mdrc.js
, .htm2mdrc.mjs
, .htm2mdrc.cjs
, and .htm2mdrc.ts
.