This script will convert HTML files to Markdown files abiding to markdown standards.
-
Install Python on your system
-
Install Mardownify library
pip3 install markdownify
The content of Developer Portal is available in this repo in html file format. You can fork the repo and clone it locally to access the html files at ease of the page you want to migrate.
Use above script when you want to convert more than one html file to md file. You would need to place all the html file in a folder and pass folder name as argument in the script. You can choose any folder from cloned apigee-portal-content repo for testing.
Use above script when you want to convert one html file to md file. You would need to pass html file path and output path with md file name. You can choose any file from cloned apigee-portal-content repo for testing.