harmonize_markdown2 paramsStandardize and normalize Markdown syntax without changing the document's meaning. Re-formats headers (ATX-style), normalizes list marker…
Standardize and normalize Markdown syntax without changing the document's meaning. Re-formats headers (ATX-style), normalizes list markers to '-', enforces fenced code blocks with backticks, and applies consistent indentation. Side effects: when output_path is provided, writes the harmonized Markdown to disk. When output_path is omitted, returns the harmonized text as a string with no file I/O.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. Supports GitHub-Flavored Markdown (tables, task lists, strikethrough) and KaTeX math expressions. Pass the full document content as a string, not a file path. |
output_path | string | Optional. Absolute or relative file path where the result will be saved. Parent directories are created automatically. If omitted, the converted text content is returned directly. |
convert_to_txt2 paramsConvert Markdown to plain text by stripping all formatting — removes headers, bold/italic markers, links, images, code fences, and HTML t…
Convert Markdown to plain text by stripping all formatting — removes headers, bold/italic markers, links, images, code fences, and HTML tags. The result is a human-readable plain-text string with no markup.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_rtf2 paramsConvert Markdown to Rich Text Format (RTF). Produces an RTF document string preserving basic formatting: bold, italic, headers, lists, an…
Convert Markdown to Rich Text Format (RTF). Produces an RTF document string preserving basic formatting: bold, italic, headers, lists, and code blocks.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_latex2 paramsConvert Markdown to LaTeX source code. Produces a LaTeX document fragment with \section, \textbf, \textit, list environments, verbatim co…
Convert Markdown to LaTeX source code. Produces a LaTeX document fragment with \section, \textbf, \textit, list environments, verbatim code blocks, and table environments. KaTeX math expressions are passed through as native LaTeX math.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_docx2 paramsConvert Markdown to a Microsoft Word DOCX file. Produces a binary .docx document with styled headings, bold/italic text, numbered and bul…
Convert Markdown to a Microsoft Word DOCX file. Produces a binary .docx document with styled headings, bold/italic text, numbered and bulleted lists, and code formatting. Binary format — output_path should almost always be provided.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the binary .docx file. |
convert_to_pdf2 paramsConvert Markdown to a PDF document. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and prints it to PDF via a headless Chro…
Convert Markdown to a PDF document. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and prints it to PDF via a headless Chromium browser. Binary format — output_path should almost always be provided.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the binary .pdf file. |
convert_to_image2 paramsConvert Markdown to a PNG image. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and takes a full-page screenshot via a head…
Convert Markdown to a PNG image. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and takes a full-page screenshot via a headless Chromium browser. Binary format — output_path should almost always be provided.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the binary .png file. |
convert_to_csv2 paramsExtract tables from Markdown and convert them to CSV format. Parses GFM pipe-tables from the input and outputs comma-separated values. No…
Extract tables from Markdown and convert them to CSV format. Parses GFM pipe-tables from the input and outputs comma-separated values. Non-table content is ignored.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text containing tables. |
output_path | string | Optional. File path to save the result. |
convert_to_json3 paramsConvert Markdown to a structured JSON representation. Parses the document into a JSON object with sections, headings, paragraphs, lists, …
Convert Markdown to a structured JSON representation. Parses the document into a JSON object with sections, headings, paragraphs, lists, code blocks, and tables.
| Parameter | Type | Description |
|---|
title | string | Optional. A document title string. Defaults to 'document' if omitted. |
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_xml3 paramsConvert Markdown to an XML document. Produces well-formed XML with an <?xml?> declaration and structured elements including section, head…
Convert Markdown to an XML document. Produces well-formed XML with an <?xml?> declaration and structured elements including section, heading, paragraph, list, code, and table.
| Parameter | Type | Description |
|---|
title | string | Optional. The root XML element name and document title. Defaults to 'document' if omitted. |
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_xlsx2 paramsConvert Markdown tables to a Microsoft Excel XLSX spreadsheet. Each table becomes a sheet in the workbook. Non-table content is ignored. …
Convert Markdown tables to a Microsoft Excel XLSX spreadsheet. Each table becomes a sheet in the workbook. Non-table content is ignored. Binary format — output_path should almost always be provided.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text containing tables. |
output_path | string | Optional. File path to save the binary .xlsx file. |
convert_to_html2 paramsConvert Markdown to a complete, styled HTML document. Renders GFM (tables, task lists, strikethrough) and KaTeX math into semantic HTML w…
Convert Markdown to a complete, styled HTML document. Renders GFM (tables, task lists, strikethrough) and KaTeX math into semantic HTML with an embedded stylesheet.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_md3 paramsExport Markdown content, optionally harmonizing its formatting first. When harmonize=false (default), returns the input unchanged. When h…
Export Markdown content, optionally harmonizing its formatting first. When harmonize=false (default), returns the input unchanged. When harmonize=true, applies normalization.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to export. |
harmonize | boolean | Optional. When true, normalizes Markdown syntax before returning or saving. Defaults to false. |
output_path | string | Optional. File path to save the result. |
generate_html2 paramsGenerate a complete, self-contained HTML document from Markdown with all styles inlined. Returns the HTML string directly — no file is wr…
Generate a complete, self-contained HTML document from Markdown with all styles inlined. Returns the HTML string directly — no file is written to disk. This tool is read-only and performs no file I/O.
| Parameter | Type | Description |
|---|
title | string | Optional. Sets the <title> tag in the HTML document's <head> section. Defaults to 'Document' if omitted. |
markdown | string | The raw Markdown source text to convert. |
convert_to_slack2 paramsConvert Markdown to Slack mrkdwn format. Bold as *, links as <url|text>, headers as bold text.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_discord2 paramsConvert Markdown to Discord-compatible format with styled bold/underline headers and preserved code blocks.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_jira2 paramsConvert Markdown to JIRA wiki markup with h1./h2. headings, {code} blocks, and [text|url] links.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_confluence2 paramsConvert Markdown to Confluence wiki markup with {info}, {note} panels and {code:language=x} syntax.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_asciidoc2 paramsConvert Markdown to AsciiDoc format with = headers, ---- code blocks, url[text] links, and image:: directives.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_rst2 paramsConvert Markdown to reStructuredText (RST) format with underlined headers, .. code-block:: directives, and RST reference syntax.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_mediawiki2 paramsConvert Markdown to MediaWiki markup with == headers, '''bold''', <syntaxhighlight> tags, and {| wikitable syntax.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_bbcode2 paramsConvert Markdown to BBCode format with [b], [i], [code], [url], [img] tags for phpBB/vBulletin forums.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_textile2 paramsConvert Markdown to Textile markup format for Redmine, Basecamp, and CMS platforms.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_orgmode2 paramsConvert Markdown to Emacs Org Mode format with * headers, #+BEGIN_SRC/#+END_SRC code, and [[url][text]] links.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
convert_to_email_html2 paramsConvert Markdown to email-optimized HTML with all styles inlined, compatible with Outlook, Gmail, and Apple Mail.
| Parameter | Type | Description |
|---|
markdown | string | The raw Markdown source text to convert. |
output_path | string | Optional. File path to save the result. |
html_to_markdown2 paramsConvert HTML content (full document or fragment) back to Markdown. Handles headings, tables, lists, code blocks, links, images, and inlin…
Convert HTML content (full document or fragment) back to Markdown. Handles headings, tables, lists, code blocks, links, images, and inline formatting.
| Parameter | Type | Description |
|---|
html | string | The HTML content to convert to Markdown. |
output_path | string | Optional. File path to save the result. |
repair_markdown2 paramsRepair broken Markdown from LLM output or copy-paste. Fixes unclosed code fences, broken tables, stray emphasis markers, missing heading …
Repair broken Markdown from LLM output or copy-paste. Fixes unclosed code fences, broken tables, stray emphasis markers, missing heading spaces, and broken links.
| Parameter | Type | Description |
|---|
markdown | string | The potentially broken Markdown text to repair. |
output_path | string | Optional. File path to save the result. |
lint_markdown1 paramLint Markdown and report issues as a JSON array with line number, severity, rule name, message, and fixable flag.
| Parameter | Type | Description |
|---|
markdown | string | The Markdown text to lint. |
extract_code_blocks1 paramExtract all code blocks from Markdown. Returns JSON array with language, code content, and start/end line numbers.
| Parameter | Type | Description |
|---|
markdown | string | The Markdown text to extract code blocks from. |
extract_links1 paramExtract all links and images from Markdown. Returns JSON with text, URL, line number, and type (inline, reference, image, autolink).
| Parameter | Type | Description |
|---|
markdown | string | The Markdown text to extract links from. |
generate_toc2 paramsGenerate a Markdown Table of Contents from headings with configurable max_depth (1-6) and indented links.
| Parameter | Type | Description |
|---|
markdown | string | The Markdown text to generate a TOC from. |
max_depth | number | Maximum heading depth (1-6, default: 6). |
analyze_document1 paramAnalyze Markdown and return comprehensive statistics: line/word/character/paragraph/sentence counts, heading/code/table/link/image counts…
Analyze Markdown and return comprehensive statistics: line/word/character/paragraph/sentence counts, heading/code/table/link/image counts, and estimated reading time.
| Parameter | Type | Description |
|---|
markdown | string | The Markdown text to analyze. |
extract_structure1 paramExtract full document structure overview: statistics, heading outline, code block summary, and link summary.
| Parameter | Type | Description |
|---|
markdown | string | The Markdown text to extract structure from. |
batch_convert3 paramsBatch-convert multiple Markdown documents to one or more output formats in a single call. Accepts an array of items (each with markdown c…
Batch-convert multiple Markdown documents to one or more output formats in a single call. Accepts an array of items (each with markdown content and optional title) and an array of target format IDs. Supports 22 formats: txt, csv, json, xml, xlsx, latex, rtf, docx, pdf, html, md, email, slack, discord, jira, confluence, asciidoc, rst, mediawiki, bbcode, textile, orgmode. Errors are isolated per item+format so one failure does not stop the rest. When output_dir is provided, files are written to di
| Parameter | Type | Description |
|---|
items | array | Array of documents to convert. Each item must have a 'markdown' string and an optional 'title' string. |
formats | array | Array of output format IDs to convert each item into. Valid values: txt, csv, json, xml, xlsx, latex, rtf, docx, pdf, html, md, email, slack, discord, jira, confluence, asciidoc, rst, mediawiki, bbcod |
output_dir | string | Optional. Directory path where converted files will be saved. Created automatically if it does not exist. When omitted, results are returned inline. |