Convert HTML to Markdown
The piCorePlayer Documentation source is mostly written in Markdown. So sometimes it is necessary to convert existing HTML pages into Markdown using an online service for inclusion in the documentation.
Steps
Step 1 - Copy HTML source
- In the web page, select
View source(ctrl+uin Edge) - Copy the HTML code by:
- Clicking on the HTML window to set focus.
- Highlight all source (
ctrl+a). - Copy highlighted source (
ctrl+c).
Step 2 - Convert HTML to Markdown
- Open Turndown—click Turndown - HTML to Markdown.
- Set
Heading styletoatx. - Set
Bulletto-. - Set
Code block styletofenced.
- Set
- Paste source in left HTML window (
ctrl+v). - Copy result from right MARKDOWN window (
ctrl+a,ctrl+c).
Step 3 - Tidy up Markdown
- Paste into text editor (
ctrl+c). - Remove head and trailing rubbish.