Analysis updated 2026-07-15 · repo last pushed 2019-08-24
Build an automated tool that migrates old web pages into Markdown for a modern documentation platform.
Create a system that accepts rich text pasted from a word processor and saves it as clean Markdown.
Convert HTML content into a readme file or wiki page while keeping it human-readable.
Write custom rules to pass unsupported HTML tags like SVG straight through into the Markdown output.
| patrickarlt/hast-util-to-mdast | aj-michael/tetris | alce/yogajs | |
|---|---|---|---|
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2019-08-24 | 2015-04-08 | 2017-11-07 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 2/5 | 2/5 | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Works within the unified ecosystem so you need to understand hast and mdast tree structures, and most users will want the rehype-remark wrapper for easier setup.
The hast-util-to-mdast library converts HTML content into Markdown. This is handy when you have web pages or rich text formatted in HTML and need to translate it into clean, readable Markdown for documentation, a readme file, or a wiki. Under the hood, this tool takes a structural map of an HTML document and translates it into the equivalent structure for Markdown. For example, it knows that an HTML <h2> heading tag should become ## in Markdown, and that a <strong> bold tag should become **. It automatically handles paragraph spacing and tries to keep the final text as human-readable as possible. You would use this if you are building an automated tool that migrates old web content into a modern writing platform, or if you are building a system that accepts HTML pasted from a word processor but needs to save it as Markdown. The developers note that most people will actually want to use a companion tool called rehype-remark to do this job, which uses this library behind the scenes but is easier to plug into a broader content pipeline. One notable feature is that it does not just give up when it encounters HTML tags that do not exist in Markdown, like an SVG graphic. By default it drops content it cannot translate, but it gives you a way to write custom rules to pass that raw HTML straight through into the Markdown file so you do not lose your content. The developers also include a warning that if you are working with untrusted HTML, you should clean it first. If the HTML contains malicious scripts, converting it could pass that danger along into your final document.
A JavaScript library that converts HTML content into clean Markdown text. It maps HTML tags like headings and bold tags to their Markdown equivalents, and lets you write custom rules for tags that Markdown does not support.
Mainly JavaScript. The stack also includes JavaScript, Node.js, unified.
Dormant — no commits in 2+ years (last push 2019-08-24).
The license is not mentioned in the explanation, so it is unclear what permissions you have. Check the repository for license details before using it.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.