baoyu-url-to-markdown

Convert web pages to clean markdown via Chrome CDP.

14|4|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/zephyrwang6/allSkills --skill baoyu-url-to-markdown-zephyrwang6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-url-to-markdown
Source: https://github.com/zephyrwang6/allSkills/tree/main/baoyu-url-to-markdown
Command: npx skills add https://github.com/zephyrwang6/allSkills --skill baoyu-url-to-markdown-zephyrwang6

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @mozilla/readability, linkedom, turndown, turndown-plugin-gfm, and includes scripts (resource) components.

What problem does it solve?

It removes the manual effort of opening web pages, copying content, and cleaning messy HTML so you can save readable markdown versions of online articles and pages.

Core Features & Use Cases

  • Captures webpages through Chrome CDP so JavaScript-rendered content is included.
  • Supports an auto mode for public pages and a wait mode for pages that require login or user confirmation.
  • Extracts page metadata and converts cleaned HTML into markdown for archiving, note-taking, or research.
  • Example: save a long-form article, a docs page, or a gated dashboard page as a markdown file for later use.

Quick Start

Use the baoyu-url-to-markdown skill to capture the target webpage and save it as a clean markdown file.

Frequently Asked Questions about baoyu-url-to-markdown

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

FAQPage Schema
How do I convert a JavaScript-rendered webpage to markdown?

You can convert a JavaScript-rendered webpage to markdown by using Chrome CDP to capture the fully loaded DOM. The skill monitors network-idle states and performs lazy-load scrolling to ensure all dynamic content is extracted before converting the HTML.

Can I save gated or login-required pages as markdown files?

Yes, login-required pages can be saved as markdown using a dedicated wait mode. This mode pauses the capture process, allowing you to manually authenticate or confirm actions before the tool extracts and converts the HTML content.

How do I extract clean text and metadata from messy HTML for archiving?

To extract clean text and metadata from messy HTML, the tool uses Readability to isolate readable content and Turndown to convert HTML to markdown. This process removes clutter and structures the output with extracted page metadata for archiving.

Does Chrome CDP support capturing lazy-loaded images and dynamic web content?

Yes, Chrome CDP supports capturing dynamic web content by simulating page scrolling. This triggers lazy-loaded elements and waits for network activity to idle, ensuring all asynchronous resources are fully rendered before the HTML-to-markdown conversion begins.

What is the best way to archive web articles for offline note-taking?

The best way to archive web articles for note-taking is to use a headless browser to capture the rendered page, isolate the readable HTML, and convert it into a structured markdown file. This yields a clean, portable document with original metadata intact.