render_markdown
Convert Markdown to HTML using GitHub's renderer. Supports standard Markdown and GitHub Flavored Markdown for resolving issue references and mentions.
Instructions
Render a Markdown string to HTML using GitHub's Markdown renderer. Returns the rendered HTML as a plain text string (not JSON-encoded). Use mode "markdown" (default) for standard Markdown. Use mode "gfm" (GitHub Flavored Markdown) to enable cross-references such as #42 linking to issues and @mentions — requires the context parameter to specify the repository (e.g. "owner/repo") for resolving those references. This endpoint is stateless: it renders and returns HTML without modifying any data. Docs: https://docs.github.com/en/rest/markdown/markdown#render-a-markdown-document
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Rendering mode. "markdown" (default) renders standard Markdown. "gfm" renders GitHub Flavored Markdown with cross-reference support (requires the context parameter to resolve issue and PR references). | |
| text | Yes | The Markdown text to render to HTML. | |
| context | No | Repository context for resolving cross-references in gfm mode, in "owner/repo" format (e.g. "octo-org/octo-repo"). Ignored when mode is "markdown". |