RenderMark
v0.1.12Markdown to styled HTML, PDF, DOCX, and slides with themes, diagrams, and math.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
render_markdown
Convert markdown to styled HTML. Returns a professional, styled HTML document with syntax highlighting, table of contents, and GitHub-flavored markdown support.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | The markdown content to render |
github | object | GitHub context for resolving relative image paths |
showToc | boolean | Include table of contents (default: true) |
template | string | Template: report, meeting-notes, memo, letter, slides, changelog |
theme | string | Theme: default, dark, serif, minimal |
title | string | Document title |
unsanitized | boolean | Return unsanitized HTML (default: false, HTML is sanitized for safe embedding) |
render_to_image
Render markdown as a PNG or JPEG image. Use when sharing a visual preview in chat (Telegram, Discord, Slack) where HTML can't be sent directly.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | The markdown content to render |
format | string | Image format (default: png) |
quality | integer | JPEG quality 1-100 (default: 90) |
section | string | Render only a specific heading section |
theme | string | Theme name (default, dark, serif, minimal) |
title | string | Document title |
width | integer | Viewport width in pixels (default: 1200, max: 2400) |
render_diff
Generate a visual diff (redline) between two versions of a markdown document. Additions highlighted in green, deletions in red with strikethrough.
| Parameter | Type | Description |
|---|---|---|
after * | string | The revised markdown content |
before * | string | The original markdown content |
mode | string | Diff display mode (default: inline) |
outputFormat | string | Return as HTML string or rendered image (default: html) |
title | string | Document title |
export_markdown
Export markdown to a file (PDF, DOCX, or HTML). Saves a markdown document as a downloadable file in a specific format.
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format |
markdown * | string | The markdown content to export |
title * | string | Document title (used for filename and document header) |
github | object | |
outputPath | string | Where to save the file. Defaults to current directory. |
showToc | boolean | Include table of contents (default: true) |
theme | string | Theme name |
export_batch
Export multiple markdown files as a single merged document or individual exports. Combine docs/ folders into one PDF, DOCX, or HTML.
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format |
files | array | List of markdown files to export |
glob | string | Glob pattern to match markdown files (e.g., 'docs/**/*.md') |
mode | string | Merge into one document or zip individual exports (default: merged) |
outputPath | string | Where to save the output file |
theme | string | Theme name |
title | string | Title for the merged document |
validate_markdown
Validate markdown for common issues: broken links, missing images, malformed tables, unclosed formatting, heading structure.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | The markdown content to validate |
checks | array | Which checks to run (default: all) |
filePath | string | File path for resolving relative links |
publish_to_rendermark
Publish a markdown document to the authenticated RenderMark account and get a shareable link.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | The markdown content to publish |
title * | string | Document title |
options | object |
publish_to_google_docs
Publish a markdown document as a Google Doc. Requires Google OAuth credentials in ~/.rendermark/config.json. Run `npx @rendermark/mcp-server auth google` to authenticate.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | The markdown content to publish |
title * | string | Document title |
github | object | Public GitHub context for relative image paths; export private stored documents from RenderMark |
read_document
Retrieve a document from RenderMark by URL, slug, or ID. Returns the raw markdown content and metadata.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Document slug, ID, or full RenderMark URL |
update_document
Update an existing document on RenderMark. Can update markdown content, title, publishing settings, or protection.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Document slug, ID, or full RenderMark URL |
markdown | string | New markdown content (replaces entire document) |
options | object | |
publish | boolean | Set publish state |
title | string | New document title |
list_documents
List the user's documents on RenderMark. Supports filtering by publish status, search by title, and pagination.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max results (default: 20, max: 100) |
offset | integer | Pagination offset |
published | boolean | Filter by publish status |
search | string | Search by title (fuzzy match) |
sortBy | string | Sort order (default: updated) |
delete_document
Delete a document from RenderMark. This is destructive and cannot be undone. Only use when the user explicitly asks to remove a document.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to confirm deletion |
identifier * | string | Document slug, ID, or full RenderMark URL |
sync_from_github
Sync a markdown file from a GitHub repository to RenderMark. Creates a new document or updates an existing one linked to the GitHub source.
| Parameter | Type | Description |
|---|---|---|
owner * | string | GitHub repository owner |
path * | string | Path to the markdown file (e.g., 'docs/README.md') |
repo * | string | GitHub repository name |
autoSync | boolean | Enable automatic sync via webhook (default: false) |
branch | string | Branch name (default: main) |
publish | boolean | Publish the document immediately (default: true) |
title | string | Override title |
setup_api_key
Set up a RenderMark API key by opening the user's browser to sign in and generate a key. The key is automatically saved to ~/.rendermark/config.json. Use this when the user needs to authenticate with RenderMark for the first time.
get_rendermark_instructions
Retrieve RenderMark usage instructions, including capabilities, tool selection, workflows, and best practices.