convert-url-html-to-md

Convert HTML web pages to Markdown using Node.js scripts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/1naichii/ai-code-tools --skill convert-url-html-to-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convert-url-html-to-md
Source: https://github.com/1naichii/ai-code-tools/tree/main/skills/convert-url-html-to-md
Command: npx skills add https://github.com/1naichii/ai-code-tools --skill convert-url-html-to-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @mozilla/readability, html-entities, jsdom, justify-text, turndown, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the process of converting HTML web pages into Markdown format, enabling easy documentation extraction and content manipulation.

Core Features & Use Cases

  • HTML to Markdown Conversion: Converts the content of web pages to Markdown, useful for documentation purposes.
  • Selective Content Extraction: Allows for the extraction of the main content or full page with navigation, depending on the use case.
  • Use Case: When you need to document a web page but want to keep it in a Markdown format for better portability and editability.

Quick Start

Run the skill by navigating to the skill directory and using the following command:

node scripts/convert_url.js <url> --clean=true

Frequently Asked Questions about convert-url-html-to-md

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert HTML content from a URL to Markdown documentation?

To convert HTML content from a URL to Markdown, run the Node.js script with your target URL. The Skill parses the web page HTML and transforms the extracted content into portable Markdown format for documentation and sharing.

Can I extract only the main article content from a web page instead of the full HTML?

Yes, you can extract the main article content from a web page instead of the full HTML. Use the clean flag in the command line interface to strip away navigation and page clutter, isolating the primary readable text for your Markdown output.

What Node.js packages are needed for HTML to Markdown conversion?

The required Node.js packages for HTML to Markdown conversion include jsdom for DOM parsing, turndown for conversion, and @mozilla/readability for content extraction. The Skill handles these dependencies automatically during the web scraping process.

What is the best way to automate web page content extraction for Markdown-compatible platforms?

The best way to automate web page content extraction for Markdown-compatible platforms is using a Node.js script that combines Readability and Turndown. This approach programmatically fetches URLs, parses the HTML, and outputs standardized Markdown files.

Does this HTML to Markdown converter work with dynamic JavaScript-rendered web pages?

The Skill uses jsdom to parse HTML content from URLs for Markdown conversion. While it handles standard HTML parsing effectively, complex dynamic JavaScript-rendered web pages may present extraction limitations depending on the page structure and content loading mechanism.