Skip to content

v2.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 10 May 13:13
· 6 commits to main since this release

Buy me a coffee

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.