webpage-to-md

Extract web content and convert it to Markdown with local image assets.

1|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/wangminle/skills-webpage-to-md --skill webpage-to-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webpage-to-md
Source: https://github.com/wangminle/skills-webpage-to-md/tree/main/skills/webpage-to-md
Command: npx skills add https://github.com/wangminle/skills-webpage-to-md --skill webpage-to-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, markdown, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This tool helps users convert web content into portable Markdown, automatically extracting the main article text and turning it into clean Markdown while localizing images for offline use.

Core Features & Use Cases

  • Smart content extraction from article containers and SSR-rendered pages, removing noise
  • HTML→Markdown conversion with support for headings, tables, code blocks, links, and images
  • Local image download and asset management for offline usage, with frontmatter support
  • Batch crawling of index pages and merging outputs for documentation or knowledge bases
  • WeChat article support and wiki page export workflows

Quick Start

Run the CLI with a URL to export a page as Markdown and download assets to a local assets directory.

Frequently Asked Questions about webpage-to-md

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

FAQPage Schema
How do I convert a web page to Markdown with local images?

You can convert web pages to Markdown by running the CLI with a target URL. The tool extracts main article content, transforms HTML to Markdown, and automatically downloads images to a local assets directory for offline usage.

Does web-to-markdown conversion work for WeChat articles and wiki pages?

Yes, the web-to-markdown conversion specifically supports WeChat articles and wiki index pages. It uses SSR-aware parsing to handle their rendering and exports the content into clean Markdown files with localized images.

Can I batch crawl wiki index pages and merge the Markdown output?

Yes, batch crawling of wiki index pages is supported. The tool fetches multiple pages, extracts their content, and merges the Markdown outputs together, which is ideal for assembling documentation or building a unified knowledge base.

What is SSR-aware parsing in web content extraction?

SSR-aware parsing identifies server-side rendered HTML structures to accurately extract main content while removing noise. This ensures deterministic content extraction from complex pages before converting HTML to Markdown with proper headings, tables, and code blocks.

Do I need heavy dependencies to extract web content and download images?

No, you only need a lightweight dependency footprint. The tool requires just the requests and markdown libraries to perform deterministic content extraction, SSR-aware parsing, and local image downloading without heavy framework overhead.

Why use YAML frontmatter when saving web pages as Markdown?

Using YAML frontmatter when saving web pages as Markdown embeds structured metadata like source URLs and titles at the top of the file. This ensures safe URL handling and provides contextual metadata for documentation systems and knowledge bases.