RenderMark

v0.1.12
io.github.jmsaavedra/rendermark Checked 9 hours ago Published 26 days ago

Markdown 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.

ParameterTypeDescription
markdown *stringThe markdown content to render
githubobjectGitHub context for resolving relative image paths
showTocbooleanInclude table of contents (default: true)
templatestringTemplate: report, meeting-notes, memo, letter, slides, changelog
themestringTheme: default, dark, serif, minimal
titlestringDocument title
unsanitizedbooleanReturn 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.

ParameterTypeDescription
markdown *stringThe markdown content to render
formatstringImage format (default: png)
qualityintegerJPEG quality 1-100 (default: 90)
sectionstringRender only a specific heading section
themestringTheme name (default, dark, serif, minimal)
titlestringDocument title
widthintegerViewport 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.

ParameterTypeDescription
after *stringThe revised markdown content
before *stringThe original markdown content
modestringDiff display mode (default: inline)
outputFormatstringReturn as HTML string or rendered image (default: html)
titlestringDocument title

export_markdown

Export markdown to a file (PDF, DOCX, or HTML). Saves a markdown document as a downloadable file in a specific format.

ParameterTypeDescription
format *stringOutput format
markdown *stringThe markdown content to export
title *stringDocument title (used for filename and document header)
githubobject
outputPathstringWhere to save the file. Defaults to current directory.
showTocbooleanInclude table of contents (default: true)
themestringTheme name

export_batch

Export multiple markdown files as a single merged document or individual exports. Combine docs/ folders into one PDF, DOCX, or HTML.

ParameterTypeDescription
format *stringOutput format
filesarrayList of markdown files to export
globstringGlob pattern to match markdown files (e.g., 'docs/**/*.md')
modestringMerge into one document or zip individual exports (default: merged)
outputPathstringWhere to save the output file
themestringTheme name
titlestringTitle for the merged document

validate_markdown

Validate markdown for common issues: broken links, missing images, malformed tables, unclosed formatting, heading structure.

ParameterTypeDescription
markdown *stringThe markdown content to validate
checksarrayWhich checks to run (default: all)
filePathstringFile path for resolving relative links

publish_to_rendermark

Publish a markdown document to the authenticated RenderMark account and get a shareable link.

ParameterTypeDescription
markdown *stringThe markdown content to publish
title *stringDocument title
optionsobject

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.

ParameterTypeDescription
markdown *stringThe markdown content to publish
title *stringDocument title
githubobjectPublic GitHub context for relative image paths; export private stored documents from RenderMark

share_live_preview

Create a temporary shareable URL for a markdown document preview. The URL expires after the specified duration.

ParameterTypeDescription
markdown *stringThe markdown content to share
expiresInstringHow long the link stays active (default: 24h)
themestringTheme name
titlestringDocument title

read_document

Retrieve a document from RenderMark by URL, slug, or ID. Returns the raw markdown content and metadata.

ParameterTypeDescription
identifier *stringDocument slug, ID, or full RenderMark URL

update_document

Update an existing document on RenderMark. Can update markdown content, title, publishing settings, or protection.

ParameterTypeDescription
identifier *stringDocument slug, ID, or full RenderMark URL
markdownstringNew markdown content (replaces entire document)
optionsobject
publishbooleanSet publish state
titlestringNew document title

list_documents

List the user's documents on RenderMark. Supports filtering by publish status, search by title, and pagination.

ParameterTypeDescription
limitintegerMax results (default: 20, max: 100)
offsetintegerPagination offset
publishedbooleanFilter by publish status
searchstringSearch by title (fuzzy match)
sortBystringSort order (default: updated)

share_document

Share a RenderMark document with specific people via email. Sets email-restricted protection and grants access to the specified addresses.

ParameterTypeDescription
emails *arrayEmail addresses to grant access (1-50)
identifier *stringDocument slug, ID, or full RenderMark URL
messagestringOptional message to include in the share notification
notifybooleanSend email notification to recipients (default: true)

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.

ParameterTypeDescription
confirm *booleanMust be true to confirm deletion
identifier *stringDocument 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.

ParameterTypeDescription
owner *stringGitHub repository owner
path *stringPath to the markdown file (e.g., 'docs/README.md')
repo *stringGitHub repository name
autoSyncbooleanEnable automatic sync via webhook (default: false)
branchstringBranch name (default: main)
publishbooleanPublish the document immediately (default: true)
titlestringOverride 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.