baoyu-url-to-markdown

Fetch web URLs via Chrome DevTools Protocol and convert HTML to Markdown.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-url-to-markdown-lihanghang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-url-to-markdown
Source: https://github.com/lihanghang/agent-daily-blog/tree/main/skills-archive/2026-03-17/baoyu-skills/skills/baoyu-url-to-markdown
Command: npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-url-to-markdown-lihanghang

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Fetches any URL via Chrome CDP and converts HTML to clean markdown.

Core Features & Use Cases

  • Chrome CDP for full JavaScript rendering
  • Two capture modes: auto on page load or wait for user signal
  • Outputs YAML front matter metadata and clean markdown

Quick Start

Run the script with a URL to save the page as markdown.

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 web URL to Markdown using Chrome CDP?

To convert a web URL to Markdown, this Skill fetches the page via Chrome DevTools Protocol and renders the HTML into clean Markdown. It utilizes Node.js scripts to execute the capture and transformation process for dynamic content.

Does URL to Markdown conversion work with JavaScript-rendered dynamic content?

Yes, URL to Markdown conversion works with dynamic content by leveraging Chrome DevTools Protocol for full JavaScript rendering. This ensures that scripts are executed and the HTML is fully built before extraction occurs.

Can I capture web pages that require user login to Markdown?

You can capture web pages requiring login by using the wait mode. This mode pauses the URL to Markdown capture until you signal the script after manually authenticating within the Chrome browser session.

Do I need a Node.js runtime to convert HTML to Markdown with Chrome DevTools Protocol?

Yes, you need a Node.js runtime and a Chrome browser to execute the included scripts. These dependencies are required to run the Chrome CDP capture process and render the final Markdown output.

What is the best way to save web page content as Markdown for a knowledge base?

The best way to save web content as Markdown is using a CDP-based converter that outputs YAML front matter metadata. This approach standardizes the extracted HTML into ready-to-paste Markdown for documentation.

Are there limitations when converting dynamic web pages to Markdown?

Limitations include requiring a local Chrome browser and Node.js environment to run the scripts. While it handles dynamic content via Chrome CDP, complex interactive states may require manual wait mode capture.