{"_id":"@wcj/html-to-markdown","_rev":"5-c49c799bdf5d788ac7b9b4c015c44a97","name":"@wcj/html-to-markdown","description":"html conversion tool to markdown.","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"@wcj/html-to-markdown","version":"1.0.0","keywords":["html-to-markdown","markdown","html","document","tool"],"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","_id":"@wcj/html-to-markdown@1.0.0","maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"homepage":"https://github.com/jaywcjlove/html-to-markdown-cli#readme","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"dist":{"shasum":"e00f8de7abcb1da45a9aeaec85e9d1dc1ebe6397","tarball":"https://registry.npmjs.org/@wcj/html-to-markdown/-/html-to-markdown-1.0.0.tgz","fileCount":7,"integrity":"sha512-NE/htLvErJu8IouELTrgHJ/Okdk2IPH/+mr1s64TJcifr7gMUnSuctPPAPHwj9zVhErAKbxSg4Pjb24ZDUxt8g==","signatures":[{"sig":"MEUCICmPQu1LD512kAh3KBt+6kT0xy4RsSX3LhLoB0i7IePxAiEAm8VNxubmOkF003wFp6R0xObLqCYrwEbeDFtOuMVLYKA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZnz/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVrA/+Krp3wto7RzQshaDkU4qfRYkqRth7z5iUMpay2IQlF8aoL9Pd\r\nY8sTFN/2wPLtF8i1Rph9WgwX95RnTIACNz4DqsBEABueVg9Vfxn3kcW4JL59\r\neMoNaZ7Ikpa7KJxHwlI92dVft7Y2NFiFQ7mimVBhnPVWoC58UbCr5Pe5Spzt\r\npc1e5wvIaHRi8NZ3P4y1oCFCemtx/fOd2ovnekhVE/ZA1r1JtLyLLKN9EWfA\r\n3nWiBNdXgXdQ4mTtN+0R1B8ukAXjl7O1oka+7OGnYAt50wVXxtUtOlcAq5Jx\r\ndQTGTejQlcW5tbjTdLCqOPNmFH4bz5Kgw1bBYA78ZuFg53JU6Pmv4dIMIfGd\r\ncHIn0da7C7hbupy78HSzpJ1pCsx/oHrpau3ex01eNwZNq3sY01yL2LX0wZZK\r\nFZIHXdcLni9OGOGxNkCxd2QGhI5WiUppMZ8OntRkXXNWNL6pYkS7fXeFgyua\r\nGboafbb1QZbjOxJkJMLQkSpwVwNaCy0hPkekDhJBPnJu42Mw8IayAaPFs5dG\r\n0h/5zuljPJdDAXrnY6/xay6u2cXPstaafIFABQKmQrh/Ui/0VqjWSCElBWIj\r\n07HjmrhqMidhtjkbAgq8DTYlyIpRv47mgin30EXvMhNc1TO2bsFv71k8SN2W\r\nVD4yYPx19lWJpqV8x7Pssyce/kL4muSkWFA=\r\n=xTm1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":"^14.16 || >=16.0.0"},"exports":"./lib/index.js","gitHead":"58e00b64847303afa9d4ae0af9a45016c159efde","_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"repository":{"url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git","type":"git"},"_npmVersion":"8.5.0","description":"html conversion tool to markdown.","directories":{},"_nodeVersion":"16.14.2","dependencies":{"rehype":"^12.0.1","unified":"^10.1.2","remark-gfm":"^3.0.1","rehype-video":"^1.2.2","rehype-format":"^4.0.1","rehype-ignore":"^1.0.1","rehype-remark":"^9.1.2","remark-stringify":"^10.0.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html-to-markdown_1.0.0_1650883839707_0.16018552402454267","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@wcj/html-to-markdown","version":"1.0.1","keywords":["html-to-markdown","markdown","html","document","tool"],"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","_id":"@wcj/html-to-markdown@1.0.1","maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"homepage":"https://github.com/jaywcjlove/html-to-markdown-cli#readme","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"dist":{"shasum":"4de194b0c21e67957394e2c3a842913bf17847c0","tarball":"https://registry.npmjs.org/@wcj/html-to-markdown/-/html-to-markdown-1.0.1.tgz","fileCount":7,"integrity":"sha512-QT5Px9tWJTiovaGx40M7F0Tu14AkK3/My+h0ADLH5/CM4zd4Tr9joXvvE/5crVxfttlf0q37O/KIrUCV+XsDLQ==","signatures":[{"sig":"MEYCIQDplUSCdi3Foj0UsqQGW0TVFpyqrUq+wItpw2KTEefpzAIhANq5N0PLBC2FsHnFX/Fd/mB4BXunxXsRIeQFjHwcHAKd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZoQIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonWA/+L8CIFfNkbl+ZFQMB9KLnUZGRDejChUFT+GPMLUdzgcNCc7Go\r\nGW7FLkSr3Qx3V6eYgdow0DjzCXDI68HwZ+xHMAQTc4H8EBu4d5TTnSlsEpW1\r\nLxH9TUfXn5sIQzleZTYf8L0nGxQr7zOa9y63P6GdgYIEDcXXGw4ZXoN6PNVA\r\nGDxh7zyWvIYz5oMXyPo8AJML2HorOhTqMVm1usLgT6BnrHIv4vasFPMnE9a+\r\nRQFTerhjICLzQ4utUkiSoFFHWYR1JnEcWImqvLC6IReo6vzLzJD8drgzGwxv\r\nOacB6++s30BKwV7GhlKza32BtsrXoYZVjfmdFXODcdxm2yqZOq1Nje4phyRK\r\nDw0oW8jSNAACciHkqoc/NlWzqd3y7H5JR/DN9ZnTCHojJ/lg7J9zJuubEWKK\r\npwSTe6xmkQk5E6ntCifJtaPPbeIk1xigqKIqixgdJGhWp85rYQU6SuVcXOhy\r\n9068ElPTmREHi5Q21dcETHSxS/jWksQzfDJvMSUoCOloj6bueLLs3+S/9e9o\r\nW9ob9Q2HNcVQ0wIUw9jbiMj6P9LQBkU9U/C/GhE0Ho2+oQ7oE/xuHLmv2PRW\r\nzoAwo6RCzx+seDOaZXH3jUl2kULFbUfsa6AQPtcldx7QhxljaT7yMqvtTa6g\r\nrW/FJOY25JDDvW3Afs9QnaCY/FfY6jDIqS8=\r\n=JxHa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":"^14.16 || >=16.0.0"},"exports":"./lib/index.js","gitHead":"f02e6f772607d76378084b5156d712e5232c0431","_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"repository":{"url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git","type":"git"},"_npmVersion":"8.5.0","description":"html conversion tool to markdown.","directories":{},"_nodeVersion":"16.14.2","dependencies":{"rehype":"^12.0.1","unified":"^10.1.2","remark-gfm":"^3.0.1","rehype-video":"^1.2.2","rehype-format":"^4.0.1","rehype-ignore":"^1.0.1","rehype-remark":"^9.1.2","remark-stringify":"^10.0.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html-to-markdown_1.0.1_1650885640662_0.19953497272771759","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@wcj/html-to-markdown","version":"2.0.0","keywords":["html-to-markdown","markdown","html","document","tool"],"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","_id":"@wcj/html-to-markdown@2.0.0","maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"homepage":"https://github.com/jaywcjlove/html-to-markdown-cli#readme","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"dist":{"shasum":"ed05846693062e07a3990fe5b07807bd6d7de410","tarball":"https://registry.npmjs.org/@wcj/html-to-markdown/-/html-to-markdown-2.0.0.tgz","fileCount":7,"integrity":"sha512-MyGXArvmMCT1rqaIHwq4qdCpty88awhUrF5atfD6iHYKf4C5CLGtDFVOSMc5+44SpiT80/1TqtgXvTqELULNHQ==","signatures":[{"sig":"MEUCID8NOmcKmIBJ/lVKjlpU/dB99VJCh9AoXgOTWJmEYS+/AiEAv2sPbxzP/T6CzZPrBtGkMDqGGAlnQpgehxZehr6MJiU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wcj%2fhtml-to-markdown@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11028},"main":"./lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":"^14.16 || >=16.0.0"},"exports":"./lib/index.js","gitHead":"7ae2536a3f56ff4c207d15233c97605ea7e80a50","_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"repository":{"url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git","type":"git"},"_npmVersion":"9.8.1","description":"html conversion tool to markdown.","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rehype":"^13.0.0","unified":"^11.0.0","remark-gfm":"^4.0.0","rehype-video":"^2.0.0","rehype-format":"^5.0.0","rehype-ignore":"^2.0.0","rehype-remark":"^10.0.0","remark-stringify":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html-to-markdown_2.0.0_1695892644708_0.7246747028155254","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@wcj/html-to-markdown","version":"2.0.1","keywords":["html-to-markdown","markdown","html","document","tool"],"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","_id":"@wcj/html-to-markdown@2.0.1","maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"homepage":"https://jaywcjlove.github.io/html-to-markdown-cli","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"dist":{"shasum":"428e4530279f72311edda8683cdb359da8410c16","tarball":"https://registry.npmjs.org/@wcj/html-to-markdown/-/html-to-markdown-2.0.1.tgz","fileCount":7,"integrity":"sha512-R5k+GPEtEXDjwpBN5Vavo4rBuDKTcO1wJQnPIvuz8lcKGAnQ8HO+YVsjFO2i6uGHSPdLG5eK65/eU2LhMEsGFQ==","signatures":[{"sig":"MEUCIQDPUuU+zpsJJLfTmLnEMfsnpErrPz25YowCnbDKuK5ZPAIgK8NObbnHzw1dNL7liK9J2QCFgKeFR1Qdf8k4QI34YKI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wcj%2fhtml-to-markdown@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11300},"main":"./lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":"^14.16 || >=16.0.0"},"exports":"./lib/index.js","funding":"https://jaywcjlove.github.io/#/sponsor","gitHead":"6d204ab51c9fa69e9d80b33a9e6acf908487a4f5","_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"repository":{"url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git","type":"git"},"_npmVersion":"10.5.0","description":"html conversion tool to markdown.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"rehype":"^13.0.0","unified":"^11.0.0","remark-gfm":"^4.0.0","rehype-video":"^2.0.0","rehype-format":"^5.0.0","rehype-ignore":"^2.0.0","rehype-remark":"^10.0.0","remark-stringify":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html-to-markdown_2.0.1_1713549916479_0.5304399431484237","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@wcj/html-to-markdown","version":"2.1.0","keywords":["html-to-markdown","markdown","html","document","tool"],"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","_id":"@wcj/html-to-markdown@2.1.0","maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"homepage":"https://jaywcjlove.github.io/html-to-markdown-cli","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"dist":{"shasum":"0b75a390f11371f4aabec49220549218ac514206","tarball":"https://registry.npmjs.org/@wcj/html-to-markdown/-/html-to-markdown-2.1.0.tgz","fileCount":7,"integrity":"sha512-2pod6g2vuxxQTZHQKG3r5p0bnbnhtkcAvGDVai740t3U4XUeZFS8MmC4EC9jYreLOi9LOee9O77Mgg5FHI6nlg==","signatures":[{"sig":"MEUCIG9K1J/DnUp9QVoK3N6Tyig8PMjbCv2BYd4pZraZbSJ1AiEAybgxVBBTj9zpCYYOQYPwjie86a6V9WAPt4exiKN28XY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wcj%2fhtml-to-markdown@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12332},"main":"./lib/index.js","type":"module","types":"./lib/index.d.ts","engines":{"node":"^14.16 || >=16.0.0"},"exports":"./lib/index.js","funding":"https://jaywcjlove.github.io/#/sponsor","gitHead":"8b6193ee65f39f34db223ecfb09c291eaf54f1b2","_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"repository":{"url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git","type":"git"},"_npmVersion":"10.5.0","description":"html conversion tool to markdown.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"rehype":"^13.0.0","unified":"^11.0.0","remark-gfm":"^4.0.0","rehype-video":"^2.0.0","rehype-format":"^5.0.0","rehype-ignore":"^2.0.0","rehype-remark":"^10.0.0","remark-stringify":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html-to-markdown_2.1.0_1715346816781_0.84539630590421","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@wcj/html-to-markdown","version":"2.1.1","description":"html conversion tool to markdown.","homepage":"https://jaywcjlove.github.io/html-to-markdown-cli","funding":"https://jaywcjlove.github.io/#/sponsor","main":"./lib/index.js","exports":"./lib/index.js","types":"./lib/index.d.ts","author":{"name":"kenny wang","email":"wowohoo@qq.com"},"type":"module","keywords":["html-to-markdown","markdown","html","document","tool"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git"},"engines":{"node":"^14.16 || >=16.0.0"},"dependencies":{"rehype":"^13.0.0","rehype-format":"^5.0.0","rehype-ignore":"^2.0.0","rehype-remark":"^10.0.0","rehype-video":"^2.0.0","remark-gfm":"^4.0.0","remark-stringify":"^11.0.0","unified":"^11.0.0"},"_id":"@wcj/html-to-markdown@2.1.1","gitHead":"df2fcd8cdd8baa8fececa9748ddb6ff1e52e617b","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-Y2FQ637WK92hhhEFDoiUiKbX+o3d2pKjTe/iI1gcT8E8mXU3YVVQgEpmLzhSpBllPcRW1YJgxxRopKk9pxEKSA==","shasum":"54478d2ac3e8bb5d37bb904768722df8f79e4604","tarball":"https://registry.npmjs.org/@wcj/html-to-markdown/-/html-to-markdown-2.1.1.tgz","fileCount":7,"unpackedSize":12216,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wcj%2fhtml-to-markdown@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3+D4Yzi/ZszL1RmtGaXwoZHZb+25kpCfvpMOBxoRa+AiAmRnm6+TBA4mNBGbp8RErO8ymNBbNYlTJ9M4ck2HnHnQ=="}]},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-markdown_2.1.1_1719441710075_0.4109732094750709"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-25T10:50:39.630Z","modified":"2024-06-26T22:41:50.750Z","1.0.0":"2022-04-25T10:50:39.821Z","1.0.1":"2022-04-25T11:20:40.805Z","2.0.0":"2023-09-28T09:17:24.963Z","2.0.1":"2024-04-19T18:05:16.757Z","2.1.0":"2024-05-10T13:13:37.005Z","2.1.1":"2024-06-26T22:41:50.268Z"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/html-to-markdown-cli.git"},"keywords":["html-to-markdown","markdown","html","document","tool"],"license":"MIT","homepage":"https://jaywcjlove.github.io/html-to-markdown-cli","bugs":{"url":"https://github.com/jaywcjlove/html-to-markdown-cli/issues"},"readme":"`@wcj/html-to-markdown`\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![CI](https://github.com/jaywcjlove/html-to-markdown-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/html-to-markdown-cli/actions/workflows/ci.yml)\n[![NPM @wcj/html-to-markdown version](https://img.shields.io/npm/v/@wcj/html-to-markdown.svg?style=flat)](https://npmjs.org/package/@wcj/html-to-markdown)\n[![NPM @wcj/html-to-markdown-cli version](https://img.shields.io/npm/v/@wcj/html-to-markdown-cli.svg?style=flat&label=@wcj/html-to-markdown-cli)](https://npmjs.org/package/@wcj/html-to-markdown-cli)\n\nHTML conversion tool to markdown. Command line tool => [`@wcj/html-to-markdown-cli`](https://npmjs.com/@wcj/html-to-markdown-cli).\n\n## Installation\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c): Node 14+ is needed to use it and it must be import instead of require.\n\n```bash\nnpm i @wcj/html-to-markdown\n```\n\nCommand line tool\n\n```shell\n$ npx @wcj/html-to-markdown-cli ./html/index.html\n# 🌐 Request: /Users/xxx/index.html\n# 🎉 Compliled successfully!\n# ╰┈ Output: /Users/xxx/dist/index.md\n\n$ npx @wcj/html-to-markdown-cli https://jaywcjlove.github.io/idoc/\n# 🌐 Request: https://jaywcjlove.github.io/idoc/\n# 🎉 Compliled successfully!\n# ╰┈ Output: /Users/xxx/dist/idoc.md\n\n# Or\n\n$ sudo npm i @wcj/html-to-markdown-cli -g\n$ html-to-markdown ./html/index.html\n# 🌐 Request: /Users/xxx/html/index.html\n# 🎉 Compliled successfully!\n# ╰┈ Output: /Users/xxx/html/dist/index.md\n\n$ html-to-markdown https://jaywcjlove.github.io/idoc/\n# 🌐 Request: https://jaywcjlove.github.io/idoc/\n# 🎉 Compliled successfully!\n# ╰┈ Output: /Users/xxx/dist/idoc.md\n```\n\nCommand Help\n\n```bash\nUsage: html-to-markdown <URL|file path|-> [options] [--help|h] [--version|v]\n\nPassing \"-\" as the first arg will take input from STDIN\n\nOptions:\n\n  -v, --version, Show version number\n  -h, --help, Displays help information.\n  -o, --output <dir-path>, Output directory. defalut(dist)\n  -s, --stdout, Output to stdout\n\nExample:\n\n  html-to-markdown ./html/index.html\n  html-to-markdown https://jaywcjlove.github.io/idoc/\n  html-to-markdown --output=\"dist\"\n  echo \"<h1>hello world</h1>\"| html-to-markdown - --stdout\n```\n\nSupport Config\n\nIn the project's root directory, add a `.htm2mdrc.js` file with the following configuration to enable the [rehype](https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) and [remark](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins) plugins.\n\n```js\n/**\n * @typedef {import(\"@wcj/html-to-markdown\").Options} Options\n * @type {Options}\n **/\nexport default { \n  rehypeParseOption: {},\n  rehypePlugins: [],\n  remarkPlugins: [],\n};\n```\n\n## Usage\n\n```js\nimport htmlToMarkdown from '@wcj/html-to-markdown';\n\nhtmlToMarkdown({ html: '<h1>Markdown String</h1>' });\n// => # Markdown String\n```\n\n## API\n\n```ts\nimport { PluggableList } from 'unified';\nimport { Options as RehypeParseOptions } from 'rehype-parse';\ndeclare type Options = {\n  html?: string;\n  url?: string;\n  rehypeParseOption?: RehypeParseOptions;\n  /**\n   * List of [remark plugins](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins) to use.\n   * See the next section for examples on how to pass options\n   */\n  remarkPlugins?: PluggableList;\n  /**\n   * List of [rehype plugins](https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) to use.\n   * See the next section for examples on how to pass options\n   */\n  rehypePlugins?: PluggableList;\n};\nexport default function htmlToMarkdown(options?: Options): Promise<string>;\n```\n\n## Development\n\n```bash\n$ npm i\n$ npm install --workspaces\n$ npm run build\n$ npm run build:cli\n```\n\n## Related\n\n- [markdown-to-html-cli](https://github.com/jaywcjlove/markdown-to-html-cli) Command line tool that converts markdown to HTML.\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n<a href=\"https://github.com/jaywcjlove/html-to-markdown-cli/graphs/contributors\">\n  <img src=\"https://jaywcjlove.github.io/html-to-markdown-cli/CONTRIBUTORS.svg\" />\n</a>\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the [MIT License](https://opensource.org/licenses/MIT).\n","readmeFilename":"README.md"}