Loading...
Loading...
Use bm.md service for Markdown typesetting, rendering and format conversion, supporting multiple platforms such as WeChat Official Account, Zhihu, Juejin, etc.
npx skill4agent add miantiao-me/bm.md bm-mdresultPOST https://bm.md/api/markdown/render| Parameter | Type | Required | Default Value | Description |
|---|---|---|---|---|
| string | Yes | - | Markdown source text, supporting GFM syntax and mathematical formulas |
| string | No | | Typesetting style ID, see the complete list below |
| string | No | | Code block highlighting theme ID, see the complete list below |
| string | No | | Custom CSS, selectors must be constrained under |
| boolean | No | | Whether to convert links to footnote form |
| boolean | No | | Whether to open links in a new window |
| string | No | | Target platform: |
| string | No | | GFM footnote section title |
| string | No | | External link reference section title |
curl -X POST https://bm.md/api/markdown/render \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Title\n\nThis is a **bold** text.\n\n```javascript\nconsole.log(\"Hello, World!\");\n```",
"markdownStyle": "ayu-light",
"codeTheme": "kimbie-light",
"platform": "wechat"
}' \
-o bm.md.json{
"result": "<div id=\"bm-md\"><h1 style=\"...\">Title</h1>...</div>"
}POST https://bm.md/api/markdown/parse| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | HTML source code, which can be a complete document or fragment |
curl -X POST https://bm.md/api/markdown/parse \
-H "Content-Type: application/json" \
-d '{
"html": "<h1>Title</h1><p>This is a <strong>bold</strong> text.</p>"
}' \
-o bm.md.json{
"result": "# Title\n\nThis is a **bold** text."
}POST https://bm.md/api/markdown/extract| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Markdown source text |
curl -X POST https://bm.md/api/markdown/extract \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Title\n\nThis is a **bold** text, containing a [link](https://example.com)."
}' \
-o bm.md.json{
"result": "Title\n\nThis is a bold text, containing a link."
}POST https://bm.md/api/markdown/lint| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Markdown source text to be validated |
curl -X POST https://bm.md/api/markdown/lint \
-H "Content-Type: application/json" \
-d '{
"markdown": "#Title\nThis is a text,without proper spacing.\n-List item1\n-List item2"
}' \
-o bm.md.json{
"result": "# Title\n\nThis is a text, without proper spacing.\n\n- List item1\n- List item2"
}| ID | Name | Style Description |
|---|---|---|
| Ayu Light | Fresh and elegant light theme (default) |
| Bauhaus | Bauhaus style, geometric and functional |
| Blueprint | Blueprint style, engineering design sense |
| Botanical | Botanical garden style, natural and soft |
| GreenSimple | Green minimalist style |
| Maximalism | Maximalism, rich decoration |
| Neo-Brutalism | Neo-brutalism, bold contrast |
| Newsprint | Newsprint style |
| Organic | Organic natural style |
| Playful Geometric | Playful geometric style |
| Professional | Professional business style |
| Retro | Retro nostalgic style |
| Sketch | Hand-drawn sketch style |
| Terminal | Terminal/command line style |
| ID | Name | Type |
|---|---|---|
| Catppuccin Latte | Light |
| Catppuccin Frappé | Dark |
| Catppuccin Macchiato | Dark |
| Catppuccin Mocha | Dark |
| Kimbie Light | Light |
| Kimbie Dark | Dark |
| Panda Syntax Light | Light |
| Panda Syntax Dark | Dark |
| Paraiso Light | Light |
| Paraiso Dark | Dark |
| Rosé Pine Dawn | Light |
| Rosé Pine | Dark |
| Tokyo Night Light | Light |
| Tokyo Night Dark | Dark |
| ID | Description |
|---|---|
| General web pages, standard HTML output |
| WeChat Official Account, optimized for WeChat editor |
| Zhihu Column, adapted to Zhihu typesetting specifications |
| Juejin, adapted to Juejin editor |
$...$$$...$$