Convert HTML to Markdown with Node.js and cloudconvert-cli
Hi All,
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_01.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_02.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_03.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_04.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_05.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_06.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_07.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_08.jpg)
I was looking at a way to convert HTML to Markdown
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_10.jpg)
So i signed up and created the API Key
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_11.jpg)
There is a Node.js Library
npm install -g cloudconvert-cli
npm list -g
npm list -g
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_12.jpg)
Set the API Key as a Variable (in Windows) and run the HTML File with output MD
SET CLOUDCONVERT_API_KEY=<YourAPIKey>
Cloudconvert convert -f md C:\GIT_WorkingDir\exchange-2016-cu15-security-update-kb4536987.html
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_13.jpg)
This is the converted MD File
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_14.jpg)
If you look at the Preview
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_15.jpg)
The With and Heights of the Image could not be interpreted. Other than that it would do the job
![](https://icewolffile.blob.core.windows.net/$web/202204/NodeJS_16.jpg)
Regards
Andres Bohren
![](https://icewolffile.blob.core.windows.net/$web/logos/vscode_logo.png)