On this page

Convert HTML to Markdown

pCP Team 11 July 2022 pCP 6.1.0 Publishing  •
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.


Step 1 - Copy HTML source
  • In the web page, select View source (ctrl+u in 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 style to atx.
    • Set Bullet to -.
    • Set Code block style to fenced.
  • 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.

More information

The Software and Information is provided "as is" without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement.
Raspberry Pi is a trademark of the Raspberry Pi Foundation.