Install
openclaw skills install anything-to-mdConvert any URL or file to Markdown. Supports webpage, WeChat, YouTube, Bilibili, Douyin, Xiaohongshu, PDF, and Office files.
openclaw skills install anything-to-mdConvert any URL or file to high-quality Markdown using the tomd command.
mp.weixin.qq.com linksWhen the user provides a URL or file path and asks to convert it to Markdown, run:
tomd "<input>" --stdout
Where <input> is:
https://example.com/article"照着做!... http://xhslink.com/xxx ..."~/Documents/paper.pdf--stdout — output Markdown to stdout (default when used as a skill)-o <path> — save to a specific file-d <dir> — save to a specific directory--type <type> — force input type: webpage, wechat, youtube, bilibili, douyin, xiaohongshu, file-v — verbose output with progress logs# Convert a webpage
tomd "https://example.com/article" --stdout
# Convert a YouTube video (extracts subtitles or ASR)
tomd "https://www.youtube.com/watch?v=xxxxx" --stdout
# Convert a WeChat article
tomd "https://mp.weixin.qq.com/s/abc123" --stdout
# Convert a Bilibili video
tomd "https://www.bilibili.com/video/BVxxx" --stdout
# Convert from Douyin share text
tomd "https://v.douyin.com/xxx" --stdout
# Convert a Xiaohongshu post
tomd "https://www.xiaohongshu.com/explore/xxx" --stdout
# Convert a local PDF
tomd ~/Documents/paper.pdf --stdout
The output is Markdown with YAML frontmatter containing metadata:
---
title: Article Title
author: Author Name
source_url: https://...
source_type: webpage
date: 2026-04-22
---
Article content in Markdown...
For video content, the output includes a ## Transcript section with timestamped text.
tomd is not found, install it: uv pip install "anything-to-md[video] @ git+https://github.com/haiwenai/anything-to-md.git"ffmpeg is not found: brew install ffmpegyt-dlp is not found: brew install yt-dlptomd will automatically retry with browser cookies from Chrome-v flag for detailed error diagnosis