Loading...
Loading...
Compare original and translation side by side
bash render.bash --url "https://example.com"bash render.bash --html "<div>Hello World</div>"bash render.bash --url "https://example.com"bash render.bash --html "<div>Hello World</div>"| Option | Description |
|---|---|
| URL to fetch and convert to Markdown |
| Raw HTML content to convert to Markdown |
| Page load behavior: |
| Reject request patterns (regex, can be specified multiple times) |
| Custom user agent string |
| Show help message |
| 选项 | 说明 |
|---|---|
| 要抓取并转换为Markdown的URL |
| 要转换为Markdown的原始HTML内容 |
| 页面加载行为: |
| 要拒绝的请求模式(正则表达式,可多次指定) |
| 自定义用户代理字符串 |
| 显示帮助信息 |
bash render.bash --url "https://developers.cloudflare.com/"bash render.bash --url "https://developers.cloudflare.com/"networkidle0networkidle2bash render.bash --url "https://spa-example.com" --wait-until networkidle0networkidle0networkidle2bash render.bash --url "https://spa-example.com" --wait-until networkidle0bash render.bash --url "https://example.com" --reject '/^.*\.(css)/'bash render.bash --url "https://example.com" --reject '/^.*\.(css)/'bash render.bash --url "https://example.com" --user-agent "Mozilla/5.0 (compatible; MyBot/1.0)"bash render.bash --url "https://example.com" --user-agent "Mozilla/5.0 (compatible; MyBot/1.0)"CLOUDFLARE_ACCOUNT_IDCLOUDFLARE_MARKDOWN_API_KEYsecurity add-generic-password -s CLOUDFLARE_ACCOUNT_ID -a CLOUDFLARE_ACCOUNT_ID -w "your-account-id"
security add-generic-password -s CLOUDFLARE_MARKDOWN_API_KEY -a CLOUDFLARE_MARKDOWN_API_KEY -w "your-api-token"CLOUDFLARE_ACCOUNT_IDCLOUDFLARE_MARKDOWN_API_KEYsecurity add-generic-password -s CLOUDFLARE_ACCOUNT_ID -a CLOUDFLARE_ACCOUNT_ID -w "your-account-id"
security add-generic-password -s CLOUDFLARE_MARKDOWN_API_KEY -a CLOUDFLARE_MARKDOWN_API_KEY -w "your-api-token"{
"success": true,
"result": "# Example Domain\n\nThis domain is for use in illustrative examples..."
}{
"success": true,
"result": "# Example Domain\n\nThis domain is for use in illustrative examples..."
}jqcurljqcurl