Markdown Toolkit
## Overview The Markdown Toolkit API provides 39 endpoints for parsing, rendering, transforming, and analyzing Markdown content. Full CommonMark + GFM support. ## Key Features - **Rendering**: Markdown → HTML with sanitization and syntax highlighting - **Parsing**: Extract headings, links, images, code blocks, tables as structured data - **Table of Contents**: Auto-generate TOC from heading…
Markdown Toolkit endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Markdown → HTML /convert/md-to-html |
Convert Markdown to HTML with full element support. |
| POST |
Plain text → Markdown /convert/text-to-md |
Auto-format plain text as Markdown (detect headings, lists, paragraphs). |
| POST |
Markdown → Plain text /convert/md-to-text |
Strip all Markdown formatting and return plain text. |
| POST |
HTML → Markdown /convert/html-to-md |
Convert basic HTML to Markdown. |
| POST |
CSV → Markdown table /convert/csv-to-table |
Convert CSV data to a Markdown table. |
| POST |
JSON array → Markdown table /convert/json-to-table |
Convert a JSON array of objects to a Markdown table. |
| POST |
Markdown table → CSV /convert/table-to-csv |
Extract the first Markdown table and convert to CSV. |
| POST |
Markdown table → JSON array /convert/table-to-json |
Extract the first Markdown table and convert to a JSON array. |
| POST |
Bullet list → Checkbox list /convert/list-to-checklist |
Convert unordered bullet list items to GitHub-style checkbox items (- [ ]). |
| POST |
Extract all images /extract/images |
Extract all images with their alt text and URL. |
| POST |
Extract YAML frontmatter /convert/yaml-frontmatter |
Parse and extract YAML frontmatter from a Markdown document. |
| POST |
Extract heading hierarchy /extract/headings |
Extract all headings from the document as a nested tree structure with level, text, anchor, and children. |
| POST |
Extract all links /extract/links |
Extract all links including their text, URL, and type (inline, image, reference). |
| POST |
Extract code blocks /extract/code-blocks |
Extract all fenced code blocks with language tags and content. |
| POST |
Slugify text /format/slugify |
Generate a URL-safe slug from text (lowercase, hyphens, no special chars). |
| POST |
Generate table of contents /extract/toc |
Generate a Markdown table of contents from document headings, with GitHub-style anchor links. |
| POST |
Document statistics /extract/stats |
Compute comprehensive document statistics: word count, character count, sentences, paragraphs, headings, links, images, code blocks, reading time. |
| POST |
Parse YAML frontmatter /extract/frontmatter |
Parse YAML frontmatter block if present, returning structured data. |
| POST |
Transpose table rows and columns /table/transpose |
Swap rows and columns of a Markdown table. |
| POST |
Extract checkbox items (TODOs) /extract/todos |
Extract all checkbox list items, separated into done (- [x]) and pending (- [ ]) with completion percentage. |
| POST |
Prettify Markdown /format/prettify |
Clean up and reformat Markdown for consistency: normalize heading styles, add blank lines around headings, collapse multiple blank lines, remove trailing whitespace. |
| POST |
Minify Markdown /format/minify |
Remove extra whitespace and compact Markdown. |
| POST |
Word-wrap Markdown /format/wrap |
Word-wrap Markdown content at specified column width, preserving headings, code blocks, tables, and lists. |
| POST |
Generate heading anchor /format/anchor |
Generate a GitHub-style anchor link for a heading (lowercase, hyphens for spaces, special chars stripped). |
| POST |
Number headings hierarchically /format/number-headings |
Add hierarchical numbering to headings (1., 1.1., 1.1.1.) with automatic counter reset when parent levels change. |
| POST |
Indent or dedent Markdown /format/indent |
Indent or dedent the entire Markdown document by a specified number of spaces, preserving blank lines. |
| POST |
Escape Markdown special characters /format/escape |
Escape special Markdown characters in plain text so it renders literally when placed in a Markdown document. |
| POST |
Create Markdown table /table/create |
Create a Markdown table from column names and row data. |
| POST |
Set table column alignments /table/align |
Set column alignments (left, center, right) on an existing Markdown table. |
| POST |
Sort table by column /table/sort |
Sort a Markdown table by the specified column index. |
| POST |
Add column to table /table/add-column |
Add a new column to an existing Markdown table at the specified position. |
| POST |
Pretty-print table with aligned columns /table/format |
Reformat a Markdown table so all columns are padded to equal width for readability in raw Markdown editors. |
| POST |
Check for images missing alt text /validate/images |
Identify images that are missing alt text (accessibility issue). |
| POST |
Validate link syntax /validate/links |
Check for broken link syntax: missing URLs, unclosed brackets, malformed link definitions. |
| POST |
Validate heading hierarchy /validate/structure |
Validate heading hierarchy — detect skipped levels (e.g., jumping from H2 to H4 without an H3). |
| POST |
Lint Markdown document /validate/lint |
Basic Markdown linting: trailing whitespace, heading style, multiple H1 headings, bare URLs, missing blank lines around headings. |
| POST |
Check document completeness /validate/completeness |
Check document completeness: has H1 title, has content, has paragraphs, reasonable word count, optional frontmatter. |
| GET |
Root / |
API information and endpoint index. |
| GET |
Health /health |
Health check endpoint. |
Markdown Toolkit pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| Pro | $9.99 / month | 20 / minute |
|
| Ultra | $29.99 / month | 100 / minute |
|