To Markdown and back
Trimd is command-line tool to convert between HTML, Markdown, and plain text, powered by unified.js libraries. It runs in Node.js and can be installed globally with npm:
npm install -g trimd
The full documentation is available on the GitHub repository page.
Online HTML to Markdown converter
I’ve used the same libraries as for the command-line tool to make a companion web tool focused on converting HTML to Markdown:
All operations are performed locally, without any data leaving the browser.
The web tool has the advantage of being able to access the text/html
entry of the clipboard, which makes it ideal for converting content from many native apps directly to Markdown:
- Rich content from a word processor to formatted Markdown text;
- Content from a spreadsheet app to a Markdown table;
- A browser bookmark folder to a Markdown list.
Colophon: The Trimd wordmark is typeset in IBM Plex Mono, a typeface by Bold Monday.
Related projects
Turn web pages into readable PDF, EPUB, HTML, or Markdown files from the command line.
Inspect and transform YAML front-matter data from the command line.
A tool to help you explore the kinds of data available when you paste something on a web page, or drop something onto it.